56 "Move Mouse for maximum left steer then press a button",
57 "Move Mouse for maximum right steer then press a button",
58 "Move Mouse for full throttle then press a button",
59 "Move Mouse for full brake then press a button",
60 "Calibration terminated",
64 static void Idle2(
void);
90 if (fabs(axv) < 0.01) {
101 if (fabs(axv) < 0.01) {
127 for (i = 0; i < 3; i++) {
int GfctrlMouseGetCurrent(tCtrlMouseInfo *mouseInfo)
Get the mouse current values.
int GfuiButtonCreate(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost)
Add a button to a screen.
int edgedn[3]
Button transition from up to down.
Robot Module Interface Definition.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
void GfuiIdle(void)
Idle function for the GUI to be called during Idle loop of glut.
static void IdleMouseInit(void)
The Gaming Framework API (client part).
void * GfuiScreenCreateEx(float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed)
Create a screen.
static int GetNextAxis(void)
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
static void MouseCalAutomaton(void)
void GfuiMenuDefaultKeysAdd(void *scr)
Add the default menu keyboard callback to a screen.
void * MouseCalMenuInit(void *prevMenu, tCmdInfo *cmd, int maxcmd)
void(* tfuiCallback)(void *)
void GfctrlMouseInitCenter(void)
Get the reference position.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
void GfScrGetSize(int *scrw, int *scrh, int *vieww, int *viewh)
Get the screen and viewport sizes.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
void GfctrlMouseCenter(void)
Recentre the mouse on the screen.
Mouse information structure.
static tCtrlMouseInfo mouseInfo
static void onActivate2(void *)
float ax[4]
mouse axis position (mouse considered as a joystick)
Track Structure and Track Loader Module Definition.
static const char * Instructions[]