TORCS  1.3.9
The Open Racing Car Simulator
mouseconfig.cpp File Reference


More...

#include <stdio.h>
#include <stdlib.h>
#include <tgfclient.h>
#include <track.h>
#include <robot.h>
#include <playerpref.h>
#include <plib/js.h>
#include "controlconfig.h"
#include "mouseconfig.h"
Include dependency graph for mouseconfig.cpp:

Go to the source code of this file.

Macros

#define CMD_OFFSET   7
 

Functions

static void Idle2 (void)
 
static int GetNextAxis (void)
 
static void MouseCalAutomaton (void)
 
static void IdleMouseInit (void)
 
static void onActivate2 (void *)
 
void * MouseCalMenuInit (void *prevMenu, tCmdInfo *cmd, int maxcmd)
 

Variables

static void * scrHandle2 = NULL
 
static tCtrlMouseInfo mouseInfo
 
static int InstId
 
static int CalState
 
static int scrw
 
static int scrh
 
static tCmdInfoCmd
 
static int maxCmd
 
static const char * Instructions []
 

Detailed Description


Author
Eric Espie
Version
$Id$

Definition in file mouseconfig.cpp.

Macro Definition Documentation

◆ CMD_OFFSET

#define CMD_OFFSET   7

Definition at line 43 of file mouseconfig.cpp.

Function Documentation

◆ GetNextAxis()

static int GetNextAxis ( void  )
static

Definition at line 67 of file mouseconfig.cpp.

◆ Idle2()

static void Idle2 ( void  )
static

Definition at line 120 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ IdleMouseInit()

static void IdleMouseInit ( void  )
static

Definition at line 136 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ MouseCalAutomaton()

static void MouseCalAutomaton ( void  )
static

Definition at line 81 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ MouseCalMenuInit()

void* MouseCalMenuInit ( void *  prevMenu,
tCmdInfo cmd,
int  maxcmd 
)

Definition at line 161 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ onActivate2()

static void onActivate2 ( void *  )
static

Definition at line 146 of file mouseconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ CalState

int CalState
static

Definition at line 49 of file mouseconfig.cpp.

◆ Cmd

tCmdInfo* Cmd
static

Definition at line 52 of file mouseconfig.cpp.

◆ InstId

int InstId
static

Definition at line 48 of file mouseconfig.cpp.

◆ Instructions

const char* Instructions[]
static
Initial value:
= {
"Move Mouse for maximum left steer then press a button",
"Move Mouse for maximum right steer then press a button",
"Move Mouse for full throttle then press a button",
"Move Mouse for full brake then press a button",
"Calibration terminated",
"Calibration failed"
}

Definition at line 55 of file mouseconfig.cpp.

◆ maxCmd

int maxCmd
static

Definition at line 53 of file mouseconfig.cpp.

◆ mouseInfo

tCtrlMouseInfo mouseInfo
static

Definition at line 40 of file mouseconfig.cpp.

◆ scrh

int scrh
static

Definition at line 50 of file mouseconfig.cpp.

◆ scrHandle2

void* scrHandle2 = NULL
static

Definition at line 38 of file mouseconfig.cpp.

◆ scrw

int scrw
static

Definition at line 50 of file mouseconfig.cpp.