TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
mouseconfig.cpp File Reference
#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 tCmdInfo * Cmd
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 42 of file mouseconfig.cpp.

Function Documentation

◆ GetNextAxis()

int GetNextAxis ( void )
static

Definition at line 66 of file mouseconfig.cpp.

◆ Idle2()

void Idle2 ( void )
static

Definition at line 119 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ IdleMouseInit()

void IdleMouseInit ( void )
static

Definition at line 135 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ MouseCalAutomaton()

void MouseCalAutomaton ( void )
static

Definition at line 80 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ MouseCalMenuInit()

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

Definition at line 160 of file mouseconfig.cpp.

Here is the call graph for this function:

◆ onActivate2()

void onActivate2 ( void )
static

Definition at line 145 of file mouseconfig.cpp.

Here is the call graph for this function:

Variable Documentation

◆ CalState

int CalState
static

Definition at line 48 of file mouseconfig.cpp.

◆ Cmd

tCmdInfo* Cmd
static

Definition at line 51 of file mouseconfig.cpp.

◆ InstId

int InstId
static

Definition at line 47 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 54 of file mouseconfig.cpp.

◆ maxCmd

int maxCmd
static

Definition at line 52 of file mouseconfig.cpp.

◆ mouseInfo

tCtrlMouseInfo mouseInfo
static

Definition at line 39 of file mouseconfig.cpp.

◆ scrh

int scrh
static

Definition at line 49 of file mouseconfig.cpp.

◆ scrHandle2

void* scrHandle2 = NULL
static

Definition at line 37 of file mouseconfig.cpp.

◆ scrw

int scrw
static

Definition at line 49 of file mouseconfig.cpp.