Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.h
| Context not available. | |||||
| static GHOST_EventCursor *processCursorEvent(GHOST_TEventType type, GHOST_IWindow *Iwindow); | static GHOST_EventCursor *processCursorEvent(GHOST_TEventType type, GHOST_IWindow *Iwindow); | ||||
| /** | /** | ||||
| * 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_IWindow *window, WPARAM wParam, LPARAM lParam); | static void processWheelEvent(GHOST_IWindow *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). | ||||
| Context not available. | |||||
brecht: Better use `int`, not point risking overflow. | |||||
Not Done Inline ActionsAs WHEEL_DELTA is defined as 120 in WinUser.h, djnz: As WHEEL_DELTA is defined as 120 in WinUser.h,
Signed char is enough to store the value from… | |||||
Not Done Inline ActionsOk, but still no good reason to cut it close I think. Things can break in refactoring and there's no downside to using ints. brecht: Ok, but still no good reason to cut it close I think. Things can break in refactoring and… | |||||
Better use int, not point risking overflow.