Project

General

Profile

Joypad Scol plugin
Scol functions definition

Functions

int _OpenJoypadSync (mmachine m)
 _OpenJoypad : This function open a joypad and init the data callback More...
 
int _CloseJoypad (mmachine m)
 _CloseJoypad : Destroy joypad object More...
 

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 189 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.