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