2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Separate KeyEvents and KeyPresses

This commit is contained in:
2011-08-26 23:17:10 -04:00
parent 6ec190f526
commit e3c65ac817
15 changed files with 32 additions and 293 deletions

View File

@ -109,6 +109,7 @@ public:
class plKeyEventMsg : public plInputEventMsg
{
protected:
wchar_t fKeyChar;
plKeyDef fKeyCode;
hsBool fKeyDown;
hsBool fCapsLockKeyDown;
@ -128,6 +129,7 @@ public:
CLASSNAME_REGISTER( plKeyEventMsg );
GETINTERFACE_ANY( plKeyEventMsg, plInputEventMsg );
void SetKeyChar(wchar_t key) { fKeyChar = key; }
void SetKeyCode(plKeyDef w) { fKeyCode = w; }
void SetKeyDown(hsBool b) { fKeyDown = b; }
void SetShiftKeyDown(hsBool b) { fShiftKeyDown = b; }
@ -135,6 +137,7 @@ public:
void SetCapsLockKeyDown(hsBool b) { fCapsLockKeyDown = b; }
void SetRepeat(hsBool b) { fRepeat = b; }
wchar_t GetKeyChar() { return fKeyChar; }
plKeyDef GetKeyCode() { return fKeyCode; }
hsBool GetKeyDown() { return fKeyDown; }
hsBool GetShiftKeyDown() { return fShiftKeyDown; }