doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
idUsercmdGenLocal Class Reference
Inheritance diagram for idUsercmdGenLocal:
idUsercmdGen

Public Member Functions

 idUsercmdGenLocal (void)
 
void Init (void)
 
void InitForNewMap (void)
 
void Shutdown (void)
 
void Clear (void)
 
void ClearAngles (void)
 
usercmd_t TicCmd (int ticNumber)
 
void InhibitUsercmd (inhibit_t subsystem, bool inhibit)
 
void UsercmdInterrupt (void)
 
int CommandStringUsercmdData (const char *cmdString)
 
int GetNumUserCommands (void)
 
const char * GetUserCommandName (int index)
 
void MouseState (int *x, int *y, int *button, bool *down)
 
int ButtonState (int key)
 
int KeyState (int key)
 
usercmd_t GetDirectUsercmd (void)
 
- Public Member Functions inherited from idUsercmdGen
virtual ~idUsercmdGen (void)
 

Private Member Functions

void MakeCurrent (void)
 
void InitCurrent (void)
 
bool Inhibited (void)
 
void AdjustAngles (void)
 
void KeyMove (void)
 
void JoystickMove (void)
 
void MouseMove (void)
 
void CmdButtons (void)
 
void Mouse (void)
 
void Keyboard (void)
 
void Joystick (void)
 
void Key (int keyNum, bool down)
 

Private Attributes

idVec3 viewangles
 
int flags
 
int impulse
 
buttonState_t toggled_crouch
 
buttonState_t toggled_run
 
buttonState_t toggled_zoom
 
int buttonState [UB_MAX_BUTTONS]
 
bool keyState [K_LAST_KEY]
 
int inhibitCommands
 
int lastCommandTime
 
bool initialized
 
usercmd_t cmd
 
usercmd_t buffered [MAX_BUFFERED_USERCMD]
 
int continuousMouseX
 
int continuousMouseY
 
int mouseButton
 
bool mouseDown
 
int mouseDx
 
int mouseDy
 
int joystickAxis [MAX_JOYSTICK_AXIS]
 

Static Private Attributes

static idCVar in_yawSpeed
 
static idCVar in_pitchSpeed
 
static idCVar in_angleSpeedKey
 
static idCVar in_freeLook
 
static idCVar in_alwaysRun
 
static idCVar in_toggleRun
 
static idCVar in_toggleCrouch
 
static idCVar in_toggleZoom
 
static idCVar sensitivity
 
static idCVar m_pitch
 
static idCVar m_yaw
 
static idCVar m_strafeScale
 
static idCVar m_smooth
 
static idCVar m_strafeSmooth
 
static idCVar m_showMouseRate
 

Detailed Description

Definition at line 309 of file UsercmdGen.cpp.

Constructor & Destructor Documentation

idUsercmdGenLocal::idUsercmdGenLocal ( void  )

Definition at line 426 of file UsercmdGen.cpp.

Member Function Documentation

void idUsercmdGenLocal::AdjustAngles ( void  )
private

Definition at line 527 of file UsercmdGen.cpp.

int idUsercmdGenLocal::ButtonState ( int  key)
virtual

Implements idUsercmdGen.

Definition at line 462 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Clear ( void  )
virtual

Implements idUsercmdGen.

Definition at line 872 of file UsercmdGen.cpp.

void idUsercmdGenLocal::ClearAngles ( void  )
virtual

Implements idUsercmdGen.

Definition at line 889 of file UsercmdGen.cpp.

void idUsercmdGenLocal::CmdButtons ( void  )
private

Definition at line 701 of file UsercmdGen.cpp.

int idUsercmdGenLocal::CommandStringUsercmdData ( const char *  cmdString)
virtual

Implements idUsercmdGen.

Definition at line 822 of file UsercmdGen.cpp.

usercmd_t idUsercmdGenLocal::GetDirectUsercmd ( void  )
virtual

Implements idUsercmdGen.

Definition at line 1092 of file UsercmdGen.cpp.

int idUsercmdGenLocal::GetNumUserCommands ( void  )
virtual

Implements idUsercmdGen.

Definition at line 493 of file UsercmdGen.cpp.

const char * idUsercmdGenLocal::GetUserCommandName ( int  index)
virtual

Implements idUsercmdGen.

Definition at line 502 of file UsercmdGen.cpp.

bool idUsercmdGenLocal::Inhibited ( void  )
private

Definition at line 516 of file UsercmdGen.cpp.

void idUsercmdGenLocal::InhibitUsercmd ( inhibit_t  subsystem,
bool  inhibit 
)
virtual

Implements idUsercmdGen.

Definition at line 447 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Init ( void  )
virtual

Implements idUsercmdGen.

Definition at line 836 of file UsercmdGen.cpp.

void idUsercmdGenLocal::InitCurrent ( void  )
private

Definition at line 747 of file UsercmdGen.cpp.

void idUsercmdGenLocal::InitForNewMap ( void  )
virtual

Implements idUsercmdGen.

Definition at line 845 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Joystick ( void  )
private

Definition at line 1037 of file UsercmdGen.cpp.

void idUsercmdGenLocal::JoystickMove ( void  )
private

Definition at line 676 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Key ( int  keyNum,
bool  down 
)
private

Definition at line 928 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Keyboard ( void  )
private

Definition at line 1012 of file UsercmdGen.cpp.

void idUsercmdGenLocal::KeyMove ( void  )
private

Definition at line 552 of file UsercmdGen.cpp.

int idUsercmdGenLocal::KeyState ( int  key)
virtual

Implements idUsercmdGen.

Definition at line 477 of file UsercmdGen.cpp.

void idUsercmdGenLocal::MakeCurrent ( void  )
private

Definition at line 762 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Mouse ( void  )
private

Definition at line 962 of file UsercmdGen.cpp.

void idUsercmdGenLocal::MouseMove ( void  )
private

Definition at line 582 of file UsercmdGen.cpp.

void idUsercmdGenLocal::MouseState ( int x,
int y,
int button,
bool down 
)
virtual

Implements idUsercmdGen.

Definition at line 1080 of file UsercmdGen.cpp.

void idUsercmdGenLocal::Shutdown ( void  )
virtual

Implements idUsercmdGen.

Definition at line 863 of file UsercmdGen.cpp.

usercmd_t idUsercmdGenLocal::TicCmd ( int  ticNumber)
virtual

Implements idUsercmdGen.

Definition at line 900 of file UsercmdGen.cpp.

void idUsercmdGenLocal::UsercmdInterrupt ( void  )
virtual

Implements idUsercmdGen.

Definition at line 1048 of file UsercmdGen.cpp.

Member Data Documentation

usercmd_t idUsercmdGenLocal::buffered[MAX_BUFFERED_USERCMD]
private

Definition at line 376 of file UsercmdGen.cpp.

int idUsercmdGenLocal::buttonState[UB_MAX_BUTTONS]
private

Definition at line 367 of file UsercmdGen.cpp.

usercmd_t idUsercmdGenLocal::cmd
private

Definition at line 375 of file UsercmdGen.cpp.

int idUsercmdGenLocal::continuousMouseX
private

Definition at line 378 of file UsercmdGen.cpp.

int idUsercmdGenLocal::continuousMouseY
private

Definition at line 378 of file UsercmdGen.cpp.

int idUsercmdGenLocal::flags
private

Definition at line 360 of file UsercmdGen.cpp.

int idUsercmdGenLocal::impulse
private

Definition at line 361 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_alwaysRun
staticprivate

Definition at line 389 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_angleSpeedKey
staticprivate

Definition at line 387 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_freeLook
staticprivate

Definition at line 388 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_pitchSpeed
staticprivate

Definition at line 386 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_toggleCrouch
staticprivate

Definition at line 391 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_toggleRun
staticprivate

Definition at line 390 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_toggleZoom
staticprivate

Definition at line 392 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::in_yawSpeed
staticprivate

Definition at line 385 of file UsercmdGen.cpp.

int idUsercmdGenLocal::inhibitCommands
private

Definition at line 370 of file UsercmdGen.cpp.

bool idUsercmdGenLocal::initialized
private

Definition at line 373 of file UsercmdGen.cpp.

int idUsercmdGenLocal::joystickAxis[MAX_JOYSTICK_AXIS]
private

Definition at line 383 of file UsercmdGen.cpp.

bool idUsercmdGenLocal::keyState[K_LAST_KEY]
private

Definition at line 368 of file UsercmdGen.cpp.

int idUsercmdGenLocal::lastCommandTime
private

Definition at line 371 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_pitch
staticprivate

Definition at line 394 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_showMouseRate
staticprivate

Definition at line 399 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_smooth
staticprivate

Definition at line 397 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_strafeScale
staticprivate

Definition at line 396 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_strafeSmooth
staticprivate

Definition at line 398 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::m_yaw
staticprivate

Definition at line 395 of file UsercmdGen.cpp.

int idUsercmdGenLocal::mouseButton
private

Definition at line 379 of file UsercmdGen.cpp.

bool idUsercmdGenLocal::mouseDown
private

Definition at line 380 of file UsercmdGen.cpp.

int idUsercmdGenLocal::mouseDx
private

Definition at line 382 of file UsercmdGen.cpp.

int idUsercmdGenLocal::mouseDy
private

Definition at line 382 of file UsercmdGen.cpp.

idCVar idUsercmdGenLocal::sensitivity
staticprivate

Definition at line 393 of file UsercmdGen.cpp.

buttonState_t idUsercmdGenLocal::toggled_crouch
private

Definition at line 363 of file UsercmdGen.cpp.

buttonState_t idUsercmdGenLocal::toggled_run
private

Definition at line 364 of file UsercmdGen.cpp.

buttonState_t idUsercmdGenLocal::toggled_zoom
private

Definition at line 365 of file UsercmdGen.cpp.

idVec3 idUsercmdGenLocal::viewangles
private

Definition at line 359 of file UsercmdGen.cpp.


The documentation for this class was generated from the following file: