MouseButtonEvent
Mouse button event
Operations
GetButton
Button that changed
method : public : GetButton() ~ MouseButtonValue
Return
Type | Description |
---|---|
MouseButtonValue | changed button |
GetClicks
Number of clicks
method : public : GetClicks() ~ Int
Return
Type | Description |
---|---|
Int | 1 for single-click, 2 for double-click, etc. |
GetState
State of the button
method : public : GetState() ~ KeyState
Return
Type | Description |
---|---|
KeyState | button state |
GetTimestamp
Timestamp of the event
method : public : GetTimestamp() ~ Int
Return
Type | Description |
---|---|
Int | event timestamp |
GetType
Event type
method : public : GetType() ~ Int
Return
Type | Description |
---|---|
Int | EventType->SDL_MOUSEBUTTONDOWN or EventType->SDL_MOUSEBUTTONUP |
GetWindowID
Window with mouse focus, if any
method : public : GetWindowID() ~ Int
Return
Type | Description |
---|---|
Int | window ID |
GetX
X coordinate, relative to window
method : public : GetX() ~ Int
Return
Type | Description |
---|---|
Int | X coordinate |
GetY
Y coordinate, relative to window
method : public : GetY() ~ Int
Return
Type | Description |
---|---|
Int | Y coordinate |