All Bundles

MouseButtonEvent

Mouse button event

Operations

GetButton

Button that changed

method : public : GetButton() ~ MouseButtonValue
Return
TypeDescription
MouseButtonValuechanged button

GetClicks

Number of clicks

method : public : GetClicks() ~ Int
Return
TypeDescription
Int1 for single-click, 2 for double-click, etc.

GetState

State of the button

method : public : GetState() ~ KeyState
Return
TypeDescription
KeyStatebutton state

GetTimestamp

Timestamp of the event

method : public : GetTimestamp() ~ Int
Return
TypeDescription
Intevent timestamp

GetType

Event type

method : public : GetType() ~ Int
Return
TypeDescription
IntEventType->SDL_MOUSEBUTTONDOWN or EventType->SDL_MOUSEBUTTONUP

GetWhich

Mouse instance id or -1

method : public : GetWhich() ~ Int

GetWindowID

Window with mouse focus, if any

method : public : GetWindowID() ~ Int
Return
TypeDescription
Intwindow ID

GetX

X coordinate, relative to window

method : public : GetX() ~ Int
Return
TypeDescription
IntX coordinate

GetY

Y coordinate, relative to window

method : public : GetY() ~ Int
Return
TypeDescription
IntY coordinate