Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Module
love.joystick
Provides an interface to the user's joystick.
Functions
close( joystick )
Closes a joystick.
getAxes( )
Returns the position of each axis.
getAxis( joystick, axis )
Returns the direction of the axis.
getBall( )
Returns the change in Ball position.
getHat( joystick, hat )
Returns the direction of a hat.
getName( )
Returns the name of a joystick.
getNumAxes( joystick )
Returns the number of axes on the joystick.
getNumBalls( joystick )
Returns the number of balls on the joystick.
getNumButtons( joystick )
Returns the number of buttons on the joystick.
getNumHats( joystick )
Returns the number of hats on the joystick.
getNumJoysticks( )
Returns how many joysticks are available.
isDown( joystick, button )
Checks if a button on a joystick is pressed.
isOpen( joystick )
Checks if the joystick is open.
open( joystick )
Opens up a joystick to be used.
Constants
JoystickConstant
Joystick hat positions.
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question