Game::Mouse
Constants
Left = MouseButton::Left
Middle = MouseButton::Middle
Right = MouseButton::Right
Class methods
down?(button : MouseButton)
Sourcein?(x : Int32 | Float32, y : Int32 | Float32, width : Int32 | Float32, height : Int32 | Float32)
Sourceposition
Sourcepressed?(button : MouseButton)
Sourcereleased?(button : MouseButton)
Sourceup?(button : MouseButton)
Sourcewheel
Sourcex=(x)
Sourcey=(y)
SourceInstance methods
all_down?(buttons : Array(MouseButton))
Sourceall_pressed?(buttons : Array(MouseButton))
Sourceall_released?(buttons : Array(MouseButton))
Sourceall_up?(buttons : Array(MouseButton))
Sourcedown?(button : MouseButton)
Sourcedown?(buttons : Array(MouseButton))
Sourcepressed?(button : MouseButton)
Sourcepressed?(buttons : Array(MouseButton))
Sourcereleased?(button : MouseButton)
Sourcereleased?(buttons : Array(MouseButton))
Sourceup?(button : MouseButton)
Sourceup?(buttons : Array(MouseButton))
Source