Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
MouseWheelEvent
Mouse wheel event
Operations
GetDirection #
Mouse wheel scroll direction
method : public : GetDirection() ~ MouseWheelDirectionReturn
| Type | Description |
|---|---|
| MouseWheelDirection | SDL_MOUSEWHEEL_NORMAL or SDL_MOUSEWHEEL_FLIPPED |
GetTimestamp #
Timestamp of the event
method : public : GetTimestamp() ~ IntReturn
| Type | Description |
|---|---|
| Int | event timestamp |
GetType #
Event type
method : public : GetType() ~ IntReturn
| Type | Description |
|---|---|
| Int | EventType->SDL_MOUSEWHEEL |
GetWindowID #
Window with mouse focus, if any
method : public : GetWindowID() ~ IntReturn
| Type | Description |
|---|---|
| Int | window ID |