MercuryInput.h File Reference

#include <map>
#include "MercuryString.h"
#include "MercuryVector.h"

Go to the source code of this file.

Classes

class  InputEvent
 Class describing an input event. More...
class  InputDevice
 [internal] Input Device Driver definition More...
class  InputDeviceTracker
 [internal] Self-registering input device system. More...
class  CursorDevice
 [internal] Cursor devce defintion More...
class  MercuryInputManager
 Input Manager (accessable via INPUTMAN). More...
class  InputMappingTracker
 [internal] Input mapping tracker (for high level tracking) More...
struct  InputMessageStruct
 structure describing an input event as broadcasted over the message system More...
class  DeviceNull
 [internal] NULL input device More...

Defines

#define KeyMapping(x)   const int x = AutoInputMappingTracker.MakeMappingCode( #x )
 Macro for defining a key mapping as found in mercury.ini.
#define KeyMappingWithCode(x, y)   const int x = AutoInputMappingTracker.MakeMappingCode( #x, y )

Enumerations

enum  EventType { IET_NONE, IET_DOWN, IET_RELEASE, IET_REPEAT }
 Type of event, each keypress sends two, one down, one up. Potentially more (like repeat). More...
enum  AllKBKeys {
  KB_0, KB_MOUSE1, KB_MOUSE2, KB_3,
  KB_4, KB_5
}

Functions

char KeyToChar (char cHardwareChar, bool bShiftPressed)

Variables

InputDeviceTracker AutoInputDeviceTracker
CursorDeviceDefaultCursorDevice
MercuryInputManagerINPUTMAN
InputMappingTracker AutoInputMappingTracker


Define Documentation

#define KeyMapping (  )     const int x = AutoInputMappingTracker.MakeMappingCode( #x )

Macro for defining a key mapping as found in mercury.ini.

Definition at line 137 of file MercuryInput.h.

#define KeyMappingWithCode ( x,
 )     const int x = AutoInputMappingTracker.MakeMappingCode( #x, y )

Definition at line 140 of file MercuryInput.h.


Enumeration Type Documentation

enum AllKBKeys

Enumerator:
KB_0 
KB_MOUSE1 
KB_MOUSE2 
KB_3 
KB_4 
KB_5 

Definition at line 168 of file MercuryInput.h.

enum EventType

Type of event, each keypress sends two, one down, one up. Potentially more (like repeat).

Enumerator:
IET_NONE 
IET_DOWN 
IET_RELEASE 
IET_REPEAT 

Definition at line 9 of file MercuryInput.h.


Function Documentation

char KeyToChar ( char  cHardwareChar,
bool  bShiftPressed 
)

Definition at line 283 of file MercuryInput.cpp.


Variable Documentation

InputDeviceTracker AutoInputDeviceTracker

Definition at line 8 of file MercuryInput.cpp.

InputMappingTracker AutoInputMappingTracker

Definition at line 9 of file MercuryInput.cpp.

CursorDevice* DefaultCursorDevice

Definition at line 9 of file MercuryInputEE.cpp.

MercuryInputManager* INPUTMAN

Definition at line 7 of file MercuryInput.cpp.


Hosted by SourceForge.net Logo