Joypad Scol plugin
|
Functions | |
int | _OpenJoypadSync (mmachine m) |
_OpenJoypad : This function open a joypad and init the data callback | |
int | _OpenJoypadExSync (mmachine m) |
_OpenJoypadEx : This function open a joypad and init the data callback | |
int | _CloseJoypad (mmachine m) |
_CloseJoypad : Destroy joypad object | |
int | _StartJoypadRumble (mmachine m) |
_StartJoypadRumble : Start joypad rumble | |
int | _StopJoypadRumble (mmachine m) |
_StopJoypadRumble : Stop the joypad rumble | |
Detailed Description
Scol functions definition
Function Documentation
◆ _CloseJoypad()
int _CloseJoypad | ( | mmachine | m | ) |
_CloseJoypad : Destroy joypad object
fun [ObjJoypad] I
- Parameters
-
ObjJoypad : joypad Object to destroy
- Returns
- I : 0 if success, NIL otherwise
Definition at line 286 of file scolplugin.cpp.
◆ _OpenJoypadExSync()
int _OpenJoypadExSync | ( | mmachine | m | ) |
_OpenJoypadEx : This function open a joypad and init the data callback
Prototype: fun [Chn I fun [ObjJoypad u0 [I I] I [I I] I [I I I I] [I I] [I r1]] u1 u0] ObjJoypad
- Parameters
-
Chn : channel I : joypad index fun [ObjJoypad u0 [I I] I [I I] I [I I I I] [I I] [I r1]] u1 : Data call back - ObjJoypad : the joypad object - u0 : the user parameter - [I I] : left stick x, y values - I : left axis value - [I I] : right stick x, y values - I : right axis value - [I I I I] : POV direction - [I I] : sliders values - [I r1] : list of button states u0 : callback user parameter
- Returns
- ObjJoypad : the joypad object if success, NIL otherwise
Definition at line 198 of file scolplugin.cpp.
◆ _OpenJoypadSync()
int _OpenJoypadSync | ( | mmachine | m | ) |
_OpenJoypad : This function open a joypad and init the data callback
Prototype: fun [Chn fun [ObjJoypad u0 [I I] I [I I] I [I I I I] [I I] [I r1]] u1 u0] ObjJoypad
- Parameters
-
Chn : channel fun [ObjJoypad u0 [I I] I [I I] I [I I I I] [I I] [I r1]] u1 : Data call back - ObjJoypad : the joypad object - u0 : the user parameter - [I I] : left stick x, y values - I : left axis value - [I I] : right stick x, y values - I : right axis value - [I I I I] : POV direction - [I I] : sliders values - [I r1] : list of button states u0 : callback user parameter
- Returns
- ObjJoypad : the joypad object if success, NIL otherwise
Definition at line 111 of file scolplugin.cpp.
◆ _StartJoypadRumble()
int _StartJoypadRumble | ( | mmachine | m | ) |
_StartJoypadRumble : Start joypad rumble
fun [ObjJoypad F] I
- Parameters
-
ObjJoypad : joypad Object to use F : rumble intensito between 0.0 and 1.0
- Returns
- I : 0 if success, NIL otherwise
Definition at line 317 of file scolplugin.cpp.
◆ _StopJoypadRumble()
int _StopJoypadRumble | ( | mmachine | m | ) |
_StopJoypadRumble : Stop the joypad rumble
fun [ObjJoypad] I
- Parameters
-
ObjJoypad : joypad Object to use
- Returns
- I : 0 if success, NIL otherwise
Definition at line 358 of file scolplugin.cpp.
Generated by 1.9.8