... #ifdef PLATFORM_WIN32 #ifdef PLATFORM_WINCE bool GetShift(); bool GetCtrl(); bool GetAlt(); bool GetCapsLock(); bool GetNumLock(); // Added by Tom bool GetScrollLock(); // Added by Tom bool GetMouseLeft(); bool GetMouseRight(); bool GetMouseMiddle(); #else inline bool GetShift() { return !!(GetKeyState(VK_SHIFT) & 0x8000); } inline bool GetCtrl() { return !!(GetKeyState(VK_CONTROL) & 0x8000); } inline bool GetAlt() { return !!(GetKeyState(VK_MENU) & 0x8000); } inline bool GetCapsLock() { return !!(GetKeyState(VK_CAPITAL) & 1); } inline bool GetNumLock() { return !!(GetKeyState(VK_NUMLOCK) & 1); } // Added by Tom inline bool GetScrollLock() { return !!(GetKeyState(VK_SCROLL) & 1); } // Added by Tom inline bool GetMouseLeft() { return !!(GetKeyState(VK_LBUTTON) & 0x8000); } inline bool GetMouseRight() { return !!(GetKeyState(VK_RBUTTON) & 0x8000); } inline bool GetMouseMiddle() { return !!(GetKeyState(VK_MBUTTON) & 0x8000); } #endif #endif #ifdef PLATFORM_X11 bool GetShift(); bool GetCtrl(); bool GetAlt(); bool GetCapsLock(); inline bool GetNumLock(){ return false; } // Added by Tom inline bool GetScrollLock(){ return false; } // Added by Tom bool GetMouseLeft(); bool GetMouseRight(); bool GetMouseMiddle(); ...
... #ifdef PLATFORM_WINCE bool GetShift() { return false; } bool GetCtrl() { return false; } bool GetAlt() { return false; } bool GetCapsLock() { return false; } bool GetNumLock() { return false; } // Added by Tom bool GetScrollLock() { return false; } // Added by Tom bool wince_mouseleft; bool wince_mouseright; ...
Report message to a moderator