CtrlCore: Developing Rainbow

git-svn-id: svn://ultimatepp.org/upp/trunk@3468 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-05-29 16:45:03 +00:00
commit 6d387ef755
13 changed files with 566 additions and 583 deletions

View file

@ -65,6 +65,14 @@ void SetWinceMouse(HWND hwnd, LPARAM lparam)
}
#else
void SetWinceMouse(HWND hwnd, LPARAM lparam) {}
bool GetShift() { return !!(GetKeyState(VK_SHIFT) & 0x8000); }
bool GetCtrl() { return !!(GetKeyState(VK_CONTROL) & 0x8000); }
bool GetAlt() { return !!(GetKeyState(VK_MENU) & 0x8000); }
bool GetCapsLock() { return !!(GetKeyState(VK_CAPITAL) & 1); }
bool GetMouseLeft() { return !!(GetKeyState(VK_LBUTTON) & 0x8000); }
bool GetMouseRight() { return !!(GetKeyState(VK_RBUTTON) & 0x8000); }
bool GetMouseMiddle() { return !!(GetKeyState(VK_MBUTTON) & 0x8000); }
#endif
void AvoidPaintingCheck__()