This is the API to use control devices (Keyboard, mouse and joysticks). More...
Functions | |
| void | GfctrlGetRefByName (const char *name, tCtrlRef *ref) |
| Get a control reference by its name. More... | |
| const char * | GfctrlGetNameByRef (GfCtrlType type, int index) |
| Get a control name by its reference. More... | |
| tCtrlJoyInfo * | GfctrlJoyInit (void) |
| Initialize the joystick control. More... | |
| void | GfctrlJoyRelease (tCtrlJoyInfo *joyInfo) |
| Release the tCtrlJoyInfo structure. More... | |
| int | GfctrlJoyIsPresent (void) |
| Check if a joystick is present. More... | |
| int | GfctrlJoyGetCurrent (tCtrlJoyInfo *joyInfo) |
| Get the joystick current values. More... | |
| tCtrlMouseInfo * | GfctrlMouseInit (void) |
| Initialize the mouse control. More... | |
| void | GfctrlMouseRelease (tCtrlMouseInfo *mouseInfo) |
| Release the tCtrlMouseInfo structure. More... | |
| int | GfctrlMouseGetCurrent (tCtrlMouseInfo *mouseInfo) |
| Get the mouse current values. More... | |
| void | GfctrlMouseCenter (void) |
| Recentre the mouse on the screen. More... | |
| void | GfctrlMouseInitCenter (void) |
| Get the reference position. More... | |
| bool | GfctrlIsEventBlacklisted (void *parmHandle, const char *driversSection, const char *event) |
| Check if given event is blacklisted (used for buttons or axis which fire a button AND move event). More... | |
| void | GfuiMouseSetHWPresent (void) |
| Force the hardware mouse pointer. More... | |
This is the API to use control devices (Keyboard, mouse and joysticks).
| const char* GfctrlGetNameByRef | ( | GfCtrlType | type, |
| int | index | ||
| ) |
Get a control name by its reference.
| type | type of control |
| index | reference index |
Definition at line 191 of file control.cpp.
| void GfctrlGetRefByName | ( | const char * | name, |
| tCtrlRef * | ref | ||
| ) |
Get a control reference by its name.
| name | name of the control |
| ref | Pointer to tCtrlRef to fill in |
Definition at line 123 of file control.cpp.
| bool GfctrlIsEventBlacklisted | ( | void * | parmHandle, |
| const char * | driversSection, | ||
| const char * | event | ||
| ) |
Check if given event is blacklisted (used for buttons or axis which fire a button AND move event).
| parmHandle | Parameters containing the blacklist |
| driversSection | Specific parameter section |
| event | Name of the event, usually obtaned with GfctrlGetRefByName, e.g. "BTN7-0" |
Definition at line 502 of file control.cpp.

| int GfctrlJoyGetCurrent | ( | tCtrlJoyInfo * | joyInfo | ) |
Get the joystick current values.
| joyInfo | joystick structure |
0 ... Ok -1 .. Error Definition at line 349 of file control.cpp.
| tCtrlJoyInfo* GfctrlJoyInit | ( | void | ) |
Initialize the joystick control.
Definition at line 303 of file control.cpp.

| int GfctrlJoyIsPresent | ( | void | ) |
Check if a joystick is present.
Definition at line 332 of file control.cpp.

| void GfctrlJoyRelease | ( | tCtrlJoyInfo * | joyInfo | ) |
Release the tCtrlJoyInfo structure.
| joyInfo | joystick structure |
Definition at line 321 of file control.cpp.
| void GfctrlMouseCenter | ( | void | ) |
Recentre the mouse on the screen.
Definition at line 476 of file control.cpp.

| int GfctrlMouseGetCurrent | ( | tCtrlMouseInfo * | mouseInfo | ) |
Get the mouse current values.
| mouseInfo | mouse structure |
0 ... Ok -1 .. Error Definition at line 427 of file control.cpp.

| tCtrlMouseInfo* GfctrlMouseInit | ( | void | ) |
Initialize the mouse control.
Definition at line 399 of file control.cpp.
| void GfctrlMouseInitCenter | ( | void | ) |
Get the reference position.
Definition at line 489 of file control.cpp.

| void GfctrlMouseRelease | ( | tCtrlMouseInfo * | mouseInfo | ) |
Release the tCtrlMouseInfo structure.
| mouseInfo | mouse structure |
Definition at line 412 of file control.cpp.