Merged Bertrand's OS X changes. Also added support for mouse wheel

on OS X server.
This commit is contained in:
crs
2004-05-26 19:23:32 +00:00
parent 84247b4c6c
commit 06d77fe314
10 changed files with 922 additions and 64 deletions

View File

@@ -28,10 +28,21 @@ public:
COSXKeyState();
virtual ~COSXKeyState();
//! Map key event to a key
/*!
Converts a key event into a KeyID and the shadow modifier state
to a modifier mask.
*/
KeyID mapKeyFromEvent(EventRef event,
KeyModifierMask* maskOut) const;
// IKeyState overrides
virtual bool fakeCtrlAltDel();
virtual const char* getKeyName(KeyButton) const;
virtual void sendKeyEvent(void* target,
bool press, bool isAutoRepeat,
KeyID key, KeyModifierMask mask,
SInt32 count, KeyButton button);
protected:
// IKeyState overrides
virtual void doUpdateKeys();
@@ -50,6 +61,8 @@ private:
typedef std::map<KeyID, KeyButton> CKeyMap;
CKeyMap m_keyMap;
static const KeyID s_virtualKey[];
};
#endif