![]() |
torcs - 1.2.2 | ![]() |
Files | |
file | control.cpp |
Human control (joystick, mouse and keyboard). | |
Functions | |
tCtrlRef * | GfctrlGetRefByName (char *name) |
Get a control reference by its name. | |
char * | GfctrlGetNameByRef (int type, int index) |
Get a control name by its reference. | |
tCtrlJoyInfo * | GfctrlJoyInit (void) |
Initialize the joystick control. | |
void | GfctrlJoyRelease (tCtrlJoyInfo *joyInfo) |
Release the tCtrlJoyInfo structure. | |
int | GfctrlJoyIsPresent (void) |
Check if a joystick is present. | |
int | GfctrlJoyGetCurrent (tCtrlJoyInfo *joyInfo) |
Get the joystick current values. | |
tCtrlMouseInfo * | GfctrlMouseInit (void) |
Initialize the mouse control. | |
void | GfctrlMouseRelease (tCtrlMouseInfo *mouseInfo) |
Release the tCtrlMouseInfo structure. | |
int | GfctrlMouseGetCurrent (tCtrlMouseInfo *mouseInfo) |
Get the mouse current values. | |
void | GfctrlMouseCenter (void) |
Recentre the mouse on the screen. | |
void | GfctrlMouseInitCenter (void) |
Get the reference position. | |
void | GfuiMouseSetHWPresent (void) |
Force the hardware mouse pointer. |
|
Get a control name by its reference.
|
|
Get a control reference by its name.
|
|
Get the joystick current values.
|
Here is the call graph for this function:
|
Initialize the joystick control.
|
|
Check if a joystick is present.
|
|
Release the tCtrlJoyInfo structure.
|
|
Recentre the mouse on the screen.
|
Here is the call graph for this function:
|
Get the mouse current values.
|
Here is the call graph for this function:
|
Initialize the mouse control.
|
|
Get the reference position.
|
Here is the call graph for this function:
|
Release the tCtrlMouseInfo structure.
|
|
Force the hardware mouse pointer.
|