Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.h
| Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | protected: | ||||
| * Creates cursor event. | * Creates cursor event. | ||||
| * \param type The type of event to create. | * \param type The type of event to create. | ||||
| * \param window The window receiving the event (the active window). | * \param window The window receiving the event (the active window). | ||||
| * \return The event created. | * \return The event created. | ||||
| */ | */ | ||||
| static GHOST_EventCursor *processCursorEvent(GHOST_TEventType type, GHOST_WindowWin32 *window); | static GHOST_EventCursor *processCursorEvent(GHOST_TEventType type, GHOST_WindowWin32 *window); | ||||
| /** | /** | ||||
| * Creates a mouse wheel event. | * Handles a mouse wheel event. | ||||
| * \param window The window receiving the event (the active window). | * \param window The window receiving the event (the active window). | ||||
| * \param wParam The wParam from the wndproc | * \param wParam The wParam from the wndproc | ||||
| * \param lParam The lParam from the wndproc | * \param lParam The lParam from the wndproc | ||||
| */ | */ | ||||
| static GHOST_EventWheel *processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | static void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | ||||
| /** | /** | ||||
| * 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 raw RawInput structure with detailed info about the key event | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | #endif | ||||
| bool m_hasAltGr; | bool m_hasAltGr; | ||||
| /** language identifier. */ | /** language identifier. */ | ||||
| WORD m_langId; | WORD m_langId; | ||||
| /** stores keyboard layout. */ | /** stores keyboard layout. */ | ||||
| HKL m_keylayout; | HKL m_keylayout; | ||||
| /** Console status */ | /** Console status */ | ||||
| int m_consoleStatus; | int m_consoleStatus; | ||||
| /** Wheel delta accumulator **/ | |||||
| signed char m_wheelDeltaAccum; | |||||
| }; | }; | ||||
| inline void GHOST_SystemWin32::retrieveModifierKeys(GHOST_ModifierKeys& keys) const | inline void GHOST_SystemWin32::retrieveModifierKeys(GHOST_ModifierKeys& keys) const | ||||
| { | { | ||||
| keys = m_modifierKeys; | keys = m_modifierKeys; | ||||
| } | } | ||||
| inline void GHOST_SystemWin32::storeModifierKeys(const GHOST_ModifierKeys& keys) | inline void GHOST_SystemWin32::storeModifierKeys(const GHOST_ModifierKeys& keys) | ||||
| Show All 25 Lines | |||||