Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.h
| Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | protected: | ||||
| * \param mask: The button mask of this event. | * \param mask: The button mask of this event. | ||||
| * \return The event created. | * \return The event created. | ||||
| */ | */ | ||||
| static GHOST_EventButton *processButtonEvent(GHOST_TEventType type, | static GHOST_EventButton *processButtonEvent(GHOST_TEventType type, | ||||
| GHOST_WindowWin32 *window, | GHOST_WindowWin32 *window, | ||||
| GHOST_TButtonMask mask); | GHOST_TButtonMask mask); | ||||
| /** | /** | ||||
| * Creates tablet events from Wintab events. | |||||
| * \param window: The window receiving the event (the active window). | |||||
| */ | |||||
| static void processWintabEvent(GHOST_WindowWin32 *window); | |||||
| /** | |||||
| * Creates tablet events from pointer events. | * Creates tablet events from pointer events. | ||||
| * \param type: The type of pointer event. | * \param type: The type of pointer 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. | ||||
| * \param eventhandled: True if the method handled the event. | * \param eventhandled: True if the method handled the event. | ||||
| */ | */ | ||||
| static void processPointerEvent( | static void processPointerEvent( | ||||
| UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventhandled); | UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventhandled); | ||||
| /** | /** | ||||
| * Creates cursor event. | * Creates cursor event. | ||||
| * \param window: The window receiving the event (the active window). | * \param window: The window receiving the event (the active window). | ||||
| * \return The event created. | |||||
| */ | */ | ||||
| static void processCursorEvent(GHOST_WindowWin32 *window); | static GHOST_EventCursor *processCursorEvent(GHOST_WindowWin32 *window); | ||||
| /** | /** | ||||
| * Handles 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 void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | static void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam); | ||||
| ▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | #endif | ||||
| /** 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. */ | /** Wheel delta accumulator. */ | ||||
| int m_wheelDeltaAccum; | int m_wheelDeltaAccum; | ||||
| /** Last mouse x position. */ | |||||
| int m_mousePosX; | |||||
| /** Last mouse y position. */ | |||||
| int m_mousePosY; | |||||
| /** Last mouse timestamp. */ | |||||
| DWORD m_mouseTimestamp; | |||||
| }; | }; | ||||
| 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 24 Lines | |||||