CONTROL Class Reference

#include <controls.h>

List of all members.

Public Member Functions

void SetName (string cname)
void SetType (string type)
ControllerEnum GetType ()
string GetName ()
void SetKeyCode (int nkey)
int GetKeyCode ()
void SetOneTime (bool ot)
bool GetOneTime ()
void SetKeyPushDown (bool npd)
bool GetKeyPushDown ()
void SetJoyNum (int jn)
int GetJoyNum ()
void SetJoyAxis (int ja)
void SetJoyAxisType (JoyAxisTypeEnum ap)
int GetJoyAxis ()
JoyAxisTypeEnum GetJoyAxisType ()
void SetJoyButton (int jb)
int GetJoyButton ()
void SetJoyType (string type)
JoyTypeEnum GetJoyType ()
void Dump ()
void SetJoyButtonLastState (bool ls)
bool GetJoyButtonLastState ()
void SetJoyPushDown (bool pd)
bool GetJoyPushDown ()
MouseTypeEnum GetMouseType ()
void SetMouseType (string mt)
MouseDirEnum GetMouseDirection ()
void SetMouseDirection (string md)
int GetMouseButton ()
void SetMouseButton (string mb)
void SetMouseButton (int mb)
bool GetLastMouseState ()
void SetLastMouseState (bool new_state)
bool GetMousePushDown ()
void SetMousePushDown (bool new_push_down)

Private Attributes

string controlname
ControllerEnum controltype
int joynum
int joyaxis
JoyAxisTypeEnum joyaxistype
int joybutton
bool joybuttonlaststate
JoyTypeEnum joytype
bool joypushdown
int keycode
bool onetime
bool keypushdown
MouseTypeEnum mousetype
int mbutton
MouseDirEnum mdir
bool last_mouse_state
bool mouse_push_down


Detailed Description

Definition at line 62 of file controls.h.


Member Function Documentation

void CONTROL::Dump  ) 
 

Definition at line 28 of file controls.cc.

References Axis, Button, controlname, controltype, Joy, joyaxis, joyaxistype, joybutton, joynum, joytype, Key, keycode, mbutton, MButton, mdir, Motion, Mouse, mousetype, and onetime.

int CONTROL::GetJoyAxis  )  [inline]
 

Definition at line 101 of file controls.h.

References joyaxis.

Referenced by VGUI::ControlGrab::BuildControlVectors().

JoyAxisTypeEnum CONTROL::GetJoyAxisType  )  [inline]
 

Definition at line 102 of file controls.h.

References joyaxistype.

Referenced by VGUI::ControlGrab::BuildControlVectors().

int CONTROL::GetJoyButton  )  [inline]
 

Definition at line 104 of file controls.h.

References joybutton.

bool CONTROL::GetJoyButtonLastState  )  [inline]
 

Definition at line 109 of file controls.h.

References joybuttonlaststate.

int CONTROL::GetJoyNum  )  [inline]
 

Definition at line 98 of file controls.h.

References joynum.

Referenced by VGUI::ControlGrab::BuildControlVectors().

bool CONTROL::GetJoyPushDown  )  [inline]
 

Definition at line 111 of file controls.h.

References joypushdown.

JoyTypeEnum CONTROL::GetJoyType  )  [inline]
 

Definition at line 106 of file controls.h.

References joytype.

Referenced by VGUI::ControlGrab::BuildControlVectors(), and GAMECONTROLS::LoadControls().

int CONTROL::GetKeyCode  )  [inline]
 

Definition at line 92 of file controls.h.

References keycode.

bool CONTROL::GetKeyPushDown  )  [inline]
 

Definition at line 96 of file controls.h.

References keypushdown.

bool CONTROL::GetLastMouseState  )  [inline]
 

Definition at line 119 of file controls.h.

References last_mouse_state.

int CONTROL::GetMouseButton  )  [inline]
 

Definition at line 116 of file controls.h.

References mbutton.

MouseDirEnum CONTROL::GetMouseDirection  )  [inline]
 

Definition at line 114 of file controls.h.

References mdir.

bool CONTROL::GetMousePushDown  )  [inline]
 

Definition at line 121 of file controls.h.

References mouse_push_down.

MouseTypeEnum CONTROL::GetMouseType  )  [inline]
 

Definition at line 112 of file controls.h.

References mousetype.

string CONTROL::GetName  )  [inline]
 

Definition at line 90 of file controls.h.

References controlname.

Referenced by VGUI::ControlGrab::BuildControlVectors().

bool CONTROL::GetOneTime  )  [inline]
 

Definition at line 94 of file controls.h.

References onetime.

ControllerEnum CONTROL::GetType  )  [inline]
 

Definition at line 89 of file controls.h.

References controltype.

Referenced by VGUI::ControlGrab::BuildControlVectors(), and GAMECONTROLS::LoadControls().

void CONTROL::SetJoyAxis int  ja  )  [inline]
 

Definition at line 99 of file controls.h.

References joyaxis.

Referenced by VGUI::ControlGrab::BuildControlVectors(), and VGUI::ControlGrab::GrabJoyMove().

void CONTROL::SetJoyAxisType JoyAxisTypeEnum  ap  )  [inline]
 

Definition at line 100 of file controls.h.

References joyaxistype.

Referenced by VGUI::ControlGrab::BuildControlVectors(), and VGUI::ControlGrab::GrabJoyMove().

void CONTROL::SetJoyButton int  jb  )  [inline]
 

Definition at line 103 of file controls.h.

References joybutton.

Referenced by VGUI::ControlGrab::GrabJoyButton(), and GAMECONTROLS::LoadControls().

void CONTROL::SetJoyButtonLastState bool  ls  )  [inline]
 

Definition at line 108 of file controls.h.

References joybuttonlaststate.

void CONTROL::SetJoyNum int  jn  )  [inline]
 

Definition at line 97 of file controls.h.

References joynum.

Referenced by VGUI::ControlGrab::BuildControlVectors(), VGUI::ControlGrab::GrabJoyButton(), VGUI::ControlGrab::GrabJoyMove(), and GAMECONTROLS::LoadControls().

void CONTROL::SetJoyPushDown bool  pd  )  [inline]
 

Definition at line 110 of file controls.h.

References joypushdown.

Referenced by VGUI::ControlGrab::GrabJoyButton(), and GAMECONTROLS::LoadControls().

void CONTROL::SetJoyType string  type  )  [inline]
 

Definition at line 105 of file controls.h.

References Axis, Button, joytype, and UnknownType.

Referenced by VGUI::ControlGrab::BuildControlVectors(), VGUI::ControlGrab::GrabJoyButton(), VGUI::ControlGrab::GrabJoyMove(), and GAMECONTROLS::LoadControls().

void CONTROL::SetKeyCode int  nkey  )  [inline]
 

Definition at line 91 of file controls.h.

References keycode.

Referenced by VGUI::ControlGrab::GrabKey().

void CONTROL::SetKeyPushDown bool  npd  )  [inline]
 

Definition at line 95 of file controls.h.

References keypushdown.

Referenced by VGUI::ControlGrab::GrabKey().

void CONTROL::SetLastMouseState bool  new_state  )  [inline]
 

Definition at line 120 of file controls.h.

References last_mouse_state.

void CONTROL::SetMouseButton int  mb  )  [inline]
 

Definition at line 118 of file controls.h.

References mbutton.

void CONTROL::SetMouseButton string  mb  )  [inline]
 

Definition at line 117 of file controls.h.

References mbutton.

Referenced by VGUI::ControlGrab::GrabMouseButton().

void CONTROL::SetMouseDirection string  md  )  [inline]
 

Definition at line 115 of file controls.h.

References Down, Left, mdir, Right, and Up.

Referenced by VGUI::ControlGrab::GrabMouseMovement().

void CONTROL::SetMousePushDown bool  new_push_down  )  [inline]
 

Definition at line 122 of file controls.h.

References mouse_push_down.

Referenced by VGUI::ControlGrab::GrabMouseButton().

void CONTROL::SetMouseType string  mt  )  [inline]
 

Definition at line 113 of file controls.h.

References MButton, Motion, mousetype, and UnknownMouse.

Referenced by VGUI::ControlGrab::GrabMouseButton(), and VGUI::ControlGrab::GrabMouseMovement().

void CONTROL::SetName string  cname  )  [inline]
 

Definition at line 87 of file controls.h.

References controlname.

Referenced by VGUI::ControlGrab::BuildControlVectors(), VGUI::ControlGrab::GrabJoyButton(), VGUI::ControlGrab::GrabJoyMove(), VGUI::ControlGrab::GrabKey(), VGUI::ControlGrab::GrabMouseButton(), VGUI::ControlGrab::GrabMouseMovement(), and GAMECONTROLS::LoadControls().

void CONTROL::SetOneTime bool  ot  )  [inline]
 

Definition at line 93 of file controls.h.

References onetime.

Referenced by VGUI::ControlGrab::GrabJoyButton(), VGUI::ControlGrab::GrabKey(), VGUI::ControlGrab::GrabMouseButton(), and GAMECONTROLS::LoadControls().

void CONTROL::SetType string  type  )  [inline]
 

Definition at line 88 of file controls.h.

References controltype, Joy, Key, Mouse, and Unknown.

Referenced by VGUI::ControlGrab::BuildControlVectors(), VGUI::ControlGrab::GrabJoyButton(), VGUI::ControlGrab::GrabJoyMove(), VGUI::ControlGrab::GrabKey(), VGUI::ControlGrab::GrabMouseButton(), VGUI::ControlGrab::GrabMouseMovement(), and GAMECONTROLS::LoadControls().


Member Data Documentation

string CONTROL::controlname [private]
 

Definition at line 65 of file controls.h.

Referenced by Dump(), GetName(), and SetName().

ControllerEnum CONTROL::controltype [private]
 

Definition at line 66 of file controls.h.

Referenced by Dump(), GetType(), and SetType().

int CONTROL::joyaxis [private]
 

Definition at line 69 of file controls.h.

Referenced by Dump(), GetJoyAxis(), and SetJoyAxis().

JoyAxisTypeEnum CONTROL::joyaxistype [private]
 

Definition at line 70 of file controls.h.

Referenced by Dump(), GetJoyAxisType(), and SetJoyAxisType().

int CONTROL::joybutton [private]
 

Definition at line 71 of file controls.h.

Referenced by Dump(), GetJoyButton(), and SetJoyButton().

bool CONTROL::joybuttonlaststate [private]
 

Definition at line 72 of file controls.h.

Referenced by GetJoyButtonLastState(), and SetJoyButtonLastState().

int CONTROL::joynum [private]
 

Definition at line 68 of file controls.h.

Referenced by Dump(), GetJoyNum(), and SetJoyNum().

bool CONTROL::joypushdown [private]
 

Definition at line 74 of file controls.h.

Referenced by GetJoyPushDown(), and SetJoyPushDown().

JoyTypeEnum CONTROL::joytype [private]
 

Definition at line 73 of file controls.h.

Referenced by Dump(), GetJoyType(), and SetJoyType().

int CONTROL::keycode [private]
 

Definition at line 76 of file controls.h.

Referenced by Dump(), GetKeyCode(), and SetKeyCode().

bool CONTROL::keypushdown [private]
 

Definition at line 78 of file controls.h.

Referenced by GetKeyPushDown(), and SetKeyPushDown().

bool CONTROL::last_mouse_state [private]
 

Definition at line 83 of file controls.h.

Referenced by GetLastMouseState(), and SetLastMouseState().

int CONTROL::mbutton [private]
 

Definition at line 81 of file controls.h.

Referenced by Dump(), GetMouseButton(), and SetMouseButton().

MouseDirEnum CONTROL::mdir [private]
 

Definition at line 82 of file controls.h.

Referenced by Dump(), GetMouseDirection(), and SetMouseDirection().

bool CONTROL::mouse_push_down [private]
 

Definition at line 84 of file controls.h.

Referenced by GetMousePushDown(), and SetMousePushDown().

MouseTypeEnum CONTROL::mousetype [private]
 

Definition at line 80 of file controls.h.

Referenced by Dump(), GetMouseType(), and SetMouseType().

bool CONTROL::onetime [private]
 

Definition at line 77 of file controls.h.

Referenced by Dump(), GetOneTime(), and SetOneTime().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:11:49 2006 by  doxygen 1.4.6