* events generated for both keys.
* @param window The window receiving the event (the active window).
*/
- GHOST_EventKey* processModifierKeys(GHOST_IWindow *window);
+ //GHOST_EventKey* processModifierKeys(GHOST_IWindow *window);
/**
* Creates mouse button event.
/**
* Check current key layout for AltGr
*/
- inline virtual void keyboardAltGr();
+ inline virtual void keyboardAltGr(void);
/**
* Windows call back routine for our window class.
* Low-level inspection of keyboard events
*/
static LRESULT CALLBACK s_llKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam);
+
+ /**
+ * Check if any shiftkey is pressed
+ */
+ inline virtual bool shiftPressed(void);
/** The current state of the modifier keys. */
GHOST_ModifierKeys m_modifierKeys;
m_modifierKeys = keys;
}
-inline void GHOST_SystemWin32::keyboardAltGr()
+inline void GHOST_SystemWin32::keyboardAltGr(void)
{
HKL keylayout = GetKeyboardLayout(0); // get keylayout for current thread
int i;
}
}
+inline bool GHOST_SystemWin32::shiftPressed(void)
+{
+ return (m_curKeyStatus[VK_SHIFT] || m_curKeyStatus[VK_RSHIFT] || m_curKeyStatus[VK_LSHIFT]);
+}
+
#endif // _GHOST_SYSTEM_WIN32_H_