Joystick: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Mick (talk | contribs)
Mick (talk | contribs)
Line 104: Line 104:
joyinfo.POV - table with state of POV switches, -1 for center, otherwise angle, (i get 0 for upwards, 90 for right, etc.)<br>
joyinfo.POV - table with state of POV switches, -1 for center, otherwise angle, (i get 0 for upwards, 90 for right, etc.)<br>


 
<br>
<br><br>
 
 
'''Example:'''
'''Example:'''
<br><br>
<br><br>

Revision as of 14:45, 14 January 2009

Functions

SetJoystickSingleAxisSaturation

Definition:
SetJoystickSingleAxisSaturation() -> ?

Description:



Arguments:
?

Returns:
?

Example:


ScanForJoysticks

Definition:
ScanForJoysticks() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSinglePOVValue

Definition:
GetJoystickSinglePOVValue() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisRawValue

Definition:
GetJoystickSingleAxisRawValue() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickData

Definition:
GetJoystickData(int joyindex) -> table joyinfo

Description:

Arguments:

int joyindex - index of the joystick, starts at 0


Returns:

joyinfo - table with joystick information:
joyinfo[1], joyinfo[2] ... - value of each axis
joyinfo.Name - name of joystick shown in options
joyinfo.AxisNames - table with names of axis
joyinfo.Buttons - table with state of buttons (i get 128 for pressed, 0 for released)
joyinfo.index - joyindex
joyinfo.POV - table with state of POV switches, -1 for center, otherwise angle, (i get 0 for upwards, 90 for right, etc.)


Example:

GetJoystickSingleButtonValue

Definition:
GetJoystickSingleButtonValue() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickAxisInvert

Definition:
GetJoystickAxisInvert() -> ?

Description:



Arguments:
?

Returns:
?

Example:


SetJoystickSingleAxisCenter

Definition:
SetJoystickSingleAxisCenter() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisInvert

Definition:
GetJoystickSingleAxisInvert() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisValue

Definition:
GetJoystickSingleAxisValue() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickNumButtons

Definition:
GetJoystickNumButtons() -> ?

Description:



Arguments:
?

Returns:
?

Example:


SetJoystickSingleAxisDeadZone

Definition:
SetJoystickSingleAxisDeadZone() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickAxisBind

Definition:
GetJoystickAxisBind() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickNumAxes

Definition:
GetJoystickNumAxes() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickNumPOVs

Definition:
GetJoystickNumPOVs() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisSettings

Definition:
GetJoystickSingleAxisSettings() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisCenter

Definition:
GetJoystickSingleAxisCenter() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisSaturation

Definition:
GetJoystickSingleAxisSaturation() -> ?

Description:



Arguments:
?

Returns:
?

Example:


GetJoystickSingleAxisDeadZone

Definition:
GetJoystickSingleAxisDeadZone() -> ?

Description:



Arguments:
?

Returns:
?

Example:


SetJoystickSingleAxisInvert

Definition:
SetJoystickSingleAxisInvert() -> ?

Description:



Arguments:
?

Returns:
?

Example: