torcs - 1.2.2

src/libs/tgfclient/control.cpp File Reference


Detailed Description

Human control (joystick, mouse and keyboard).

Author:
Eric Espie
Version:
Id
control.cpp,v 1.3 2003/11/11 16:36:22 torcs Exp

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <js.h>
#include <tgfclient.h>

Include dependency graph for control.cpp:

Include dependency graph

Compounds

struct  tgfKeyBinding

Functions

tCtrlRefGfctrlGetRefByName (char *name)
 Get a control reference by its name.

char * GfctrlGetNameByRef (int type, int index)
 Get a control name by its reference.

tCtrlJoyInfoGfctrlJoyInit (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.

tCtrlMouseInfoGfctrlMouseInit (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.


Generated at Thu Feb 26 21:53:08 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.