Changeset View
Changeset View
Standalone View
Standalone View
ghost/intern/GHOST_SystemWin32.h
| Context not available. | |||||
| */ | */ | ||||
| static void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | static void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | ||||
| /** | |||||
| * Creates a key event from a raw input event. | |||||
| * \param window: The window receiving the event (the active window). | |||||
| * \param raw: RawInput structure with detailed info about the key event. | |||||
| * \return The event created. | |||||
| */ | |||||
| static GHOST_EventKey *processRawKeyEvent(GHOST_WindowWin32 *window, RAWINPUT const &raw); | |||||
| /** | /** | ||||
| * Creates a key event and updates the key data stored locally (m_modifierKeys). | * Creates a key event and updates the key data stored locally (m_modifierKeys). | ||||
| * In most cases this is a straightforward conversion of key codes. | * In most cases this is a straightforward conversion of key codes. | ||||
| * For the modifier keys however, we want to distinguish left and right keys. | * For the modifier keys however, we want to distinguish left and right keys. | ||||
| * \param window: The window receiving the event (the active window). | * \param window: The window receiving the event (the active window). | ||||
| * \param raw: RawInput structure with detailed info about the key event. | * \param keyDown: Whether the event is a key down event. | ||||
| * \param key: The GHOST key (GHOST_kKeyUnknown if not a physical key press). | |||||
| * \param vk: The virtual key (VK_PACKET if not a physical key press). | |||||
| * \param scanCode: The ScanCode of pressed key (similar to PS/2 Set 1). | |||||
| * \return The event created. | |||||
| */ | */ | ||||
| static GHOST_EventKey *processKeyEvent(GHOST_WindowWin32 *window, RAWINPUT const &raw); | static GHOST_EventKey *processKeyEvent(GHOST_WindowWin32 *window, | ||||
| bool keyDown, | |||||
| GHOST_TKey key, | |||||
| int vk, | |||||
| int scanCode); | |||||
| /** | /** | ||||
| * Process special keys (VK_OEM_*), to see if current key layout | * Process special keys (VK_OEM_*), to see if current key layout | ||||
| Context not available. | |||||