23 #ifndef OIS_MacKeyboard_H 24 #define OIS_MacKeyboard_H 30 #include <Carbon/Carbon.h> EventHandlerUPP keyUpUPP
Definition: MacKeyboard.h:86
bool useRepeat
Definition: MacKeyboard.h:98
Definition: MacKeyboard.h:35
VirtualtoOIS_KeyMap keyConversion
Definition: MacKeyboard.h:76
virtual void _initialize()
Definition: MacKeyboard.cpp:92
MacKeyboard(InputManager *creator, bool buffered, bool repeat)
Definition: MacKeyboard.cpp:48
virtual bool isKeyDown(KeyCode key) const
Definition: MacKeyboard.cpp:132
An Object's interface is a way to gain write access to devices which support it.
Definition: OISInterface.h:34
void injectEvent(KeyCode kc, unsigned int time, MacEventType type, unsigned int txt=0)
Definition: MacKeyboard.cpp:304
::std::string string
Definition: gtest-port.h:756
EventHandlerRef keyDownEventRef
Definition: MacKeyboard.h:90
IType
Type of Interface.
Definition: OISInterface.h:40
void _modChangeCallback(EventRef theEvent)
Definition: MacKeyboard.cpp:244
EventHandlerRef keyUpEventRef
Definition: MacKeyboard.h:91
KeyCode
Keyboard scan codes.
Definition: OISKeyboard.h:31
EventHandlerUPP keyDownUPP
Definition: MacKeyboard.h:85
std::string getString
Definition: MacKeyboard.h:78
TypeWithSize< 4 >::UInt UInt32
Definition: gtest-port.h:1733
char KeyBuffer[256]
Definition: MacKeyboard.h:80
std::list< MacKeyStackEvent > eventStack
Definition: MacKeyboard.h:95
eventStack pendingEvents
Definition: MacKeyboard.h:96
virtual void capture()
Definition: MacKeyboard.cpp:139
virtual void setBuffered(bool buffered)
Definition: MacKeyboard.cpp:174
void _keyDownCallback(EventRef theEvent)
Definition: MacKeyboard.cpp:181
virtual ~MacKeyboard()
Definition: MacKeyboard.cpp:69
virtual bool buffered() const
Definition: OISObject.h:44
virtual Interface * queryInterface(Interface::IType type)
Definition: MacKeyboard.h:58
UInt32 prevModMask
Definition: MacKeyboard.h:81
void populateKeyConversion()
Definition: MacKeyboard.cpp:323
virtual void copyKeyStates(char keys[256]) const
Definition: MacKeyboard.cpp:315
virtual std::string & getAsString(KeyCode key)
Definition: MacKeyboard.cpp:166
EventHandlerUPP keyModUPP
Definition: MacKeyboard.h:87
enum Mac_EventType MacEventType
Definition: MacHelpers.h:59
void _keyUpCallback(EventRef theEvent)
Definition: MacKeyboard.cpp:230
Definition: EventHelpers.h:31
std::map< UInt32, KeyCode > VirtualtoOIS_KeyMap
Definition: MacKeyboard.h:75
EventHandlerRef keyModEventRef
Definition: MacKeyboard.h:92
Type type() const
Definition: OISObject.h:38
Keyboard base class.
Definition: OISKeyboard.h:211