31#include <playerpref.h>
55 "Move Mouse for maximum left steer then press a button",
56 "Move Mouse for maximum right steer then press a button",
57 "Move Mouse for full throttle then press a button",
58 "Move Mouse for full brake then press a button",
59 "Calibration terminated",
63static void Idle2(
void);
89 if (fabs(axv) < 0.01) {
100 if (fabs(axv) < 0.01) {
126 for (i = 0; i < 3; i++) {
static tCtrlMouseInfo mouseInfo
int GfctrlMouseGetCurrent(tCtrlMouseInfo *mouseInfo)
Get the mouse current values.
void GfctrlMouseInitCenter(void)
Get the reference position.
void GfctrlMouseCenter(void)
Recentre the mouse on the screen.
void * GfuiScreenCreateExAction(float *bgColor, const tGfuiAction &onActivate, const tGfuiAction &onDeactivate, int mouseAllowed)
Create a screen.
void GfuiMenuDefaultKeysAdd(void *scr)
Add the default menu keyboard callback to a screen.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
void GfuiIdle(void)
Process held-mouse-button repeat actions on the active screen.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfuiButtonCreateAction(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a button to a screen.
void GfScrGetSize(int *scrw, int *scrh, int *vieww, int *viewh)
Get the screen and viewport sizes.
static const char * Instructions[]
void * MouseCalMenuInit(void *prevMenu, tCmdInfo *cmd, int maxcmd)
static int GetNextAxis(void)
static void onActivate2(void)
static void IdleMouseInit(void)
static void MouseCalAutomaton(void)
Mouse information structure.
std::function< void()> tGfuiAction