Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::KeyModifiers Class Reference

#include "OVR_KeyCodes.h"

Collaboration diagram for OVR::KeyModifiers:
Collaboration graph

Public Types

enum  {
  Key_ShiftPressed = 0x01, Key_CtrlPressed = 0x02, Key_AltPressed = 0x04, Key_MetaPressed = 0x08,
  Key_CapsToggled = 0x10, Key_NumToggled = 0x20, Key_ScrollToggled = 0x40, Initialized_Bit = 0x80,
  Initialized_Mask = 0xFF
}
 

Public Member Functions

 KeyModifiers ()
 
 KeyModifiers (unsigned char st)
 
void Reset ()
 
bool IsShiftPressed () const
 
bool IsCtrlPressed () const
 
bool IsAltPressed () const
 
bool IsMetaPressed () const
 
bool IsCapsToggled () const
 
bool IsNumToggled () const
 
bool IsScrollToggled () const
 
void SetShiftPressed (bool v=true)
 
void SetCtrlPressed (bool v=true)
 
void SetAltPressed (bool v=true)
 
void SetMetaPressed (bool v=true)
 
void SetCapsToggled (bool v=true)
 
void SetNumToggled (bool v=true)
 
void SetScrollToggled (bool v=true)
 
bool IsInitialized () const
 

Data Fields

unsigned char States
 

Detailed Description

Definition at line 169 of file OVR_KeyCodes.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Key_ShiftPressed 
Key_CtrlPressed 
Key_AltPressed 
Key_MetaPressed 
Key_CapsToggled 
Key_NumToggled 
Key_ScrollToggled 
Initialized_Bit 
Initialized_Mask 

Definition at line 172 of file OVR_KeyCodes.h.

Constructor & Destructor Documentation

OVR::KeyModifiers::KeyModifiers ( )
inline

Definition at line 187 of file OVR_KeyCodes.h.

OVR::KeyModifiers::KeyModifiers ( unsigned char  st)
inline

Definition at line 188 of file OVR_KeyCodes.h.

Member Function Documentation

bool OVR::KeyModifiers::IsAltPressed ( ) const
inline

Definition at line 194 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsCapsToggled ( ) const
inline

Definition at line 196 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsCtrlPressed ( ) const
inline

Definition at line 193 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsInitialized ( ) const
inline

Definition at line 208 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsMetaPressed ( ) const
inline

Definition at line 195 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsNumToggled ( ) const
inline

Definition at line 197 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsScrollToggled ( ) const
inline

Definition at line 198 of file OVR_KeyCodes.h.

bool OVR::KeyModifiers::IsShiftPressed ( ) const
inline

Definition at line 192 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::Reset ( )
inline

Definition at line 190 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetAltPressed ( bool  v = true)
inline

Definition at line 202 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetCapsToggled ( bool  v = true)
inline

Definition at line 204 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetCtrlPressed ( bool  v = true)
inline

Definition at line 201 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetMetaPressed ( bool  v = true)
inline

Definition at line 203 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetNumToggled ( bool  v = true)
inline

Definition at line 205 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetScrollToggled ( bool  v = true)
inline

Definition at line 206 of file OVR_KeyCodes.h.

void OVR::KeyModifiers::SetShiftPressed ( bool  v = true)
inline

Definition at line 200 of file OVR_KeyCodes.h.

Field Documentation

unsigned char OVR::KeyModifiers::States

Definition at line 185 of file OVR_KeyCodes.h.


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