This sensor detects player joystick events.
integer
|
getIndex()
Returns the joystick index to use (from 1 to 8). |
source code
|
|
|
|
list
|
|
|
|
list
|
|
integer
|
|
|
|
integer
|
|
|
setButton(index)
Sets the button index the sensor reacts to when the "All
Events" option is not set. |
source code
|
|
list
|
getButtonValue()
Returns a list containing the indicies of the currently pressed
buttons. |
source code
|
|
list
|
|
|
setHat(index)
Sets the hat index the sensor reacts to when the "All
Events" option is not set. |
source code
|
|
integer
|
getNumAxes()
Returns the number of axes for the joystick at this index. |
source code
|
|
integer
|
getNumButtons()
Returns the number of buttons for the joystick at this index. |
source code
|
|
integer
|
getNumHats()
Returns the number of hats for the joystick at this index. |
source code
|
|
bool
|
isConnected()
Returns True if a joystick is detected at this joysticks index. |
source code
|
|
Inherited from SCA_ISensor.SCA_ISensor :
getFrequency ,
getInvert ,
getLevel ,
getUseNegPulseMode ,
getUsePosPulseMode ,
isPositive ,
isTriggered ,
reset ,
setFrequency ,
setInvert ,
setLevel ,
setUseNegPulseMode ,
setUsePosPulseMode
Inherited from SCA_ILogicBrick.SCA_ILogicBrick :
getExecutePriority ,
getOwner ,
setExecutePriority
|