module

Game::Mouse

Constants

Left = MouseButton::Left
Middle = MouseButton::Middle
Right = MouseButton::Right

Class methods

down?(button : MouseButton)
Source
in?(x : Int32 | Float32, y : Int32 | Float32, width : Int32 | Float32, height : Int32 | Float32)
Source
position
Source
pressed?(button : MouseButton)
Source
released?(button : MouseButton)
Source
up?(button : MouseButton)
Source
wheel
Source
x=(x)
Source
y=(y)
Source

Instance methods

all_down?(buttons : Array(MouseButton))
Source
all_pressed?(buttons : Array(MouseButton))
Source
all_released?(buttons : Array(MouseButton))
Source
all_up?(buttons : Array(MouseButton))
Source
down?(button : MouseButton)
Source
down?(buttons : Array(MouseButton))
Source
pressed?(button : MouseButton)
Source
pressed?(buttons : Array(MouseButton))
Source
released?(button : MouseButton)
Source
released?(buttons : Array(MouseButton))
Source
up?(button : MouseButton)
Source
up?(buttons : Array(MouseButton))
Source