module Game::Mouse

Defined in:

game/mouse.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Class Method Detail

def self.down?(button : MouseButton) #

[View source]
def self.in?(x : Int32 | Float32, y : Int32 | Float32, width : Int32 | Float32, height : Int32 | Float32) #

[View source]
def self.position #

[View source]
def self.pressed?(button : MouseButton) #

[View source]
def self.released?(button : MouseButton) #

[View source]
def self.up?(button : MouseButton) #

[View source]
def self.wheel #

[View source]
def self.x #

[View source]
def self.x=(x) #

[View source]
def self.y #

[View source]
def self.y=(y) #

[View source]

Instance Method Detail

def all_down?(buttons : Array(MouseButton)) #

[View source]
def all_pressed?(buttons : Array(MouseButton)) #

[View source]
def all_released?(buttons : Array(MouseButton)) #

[View source]
def all_up?(buttons : Array(MouseButton)) #

[View source]
def down?(button : MouseButton) #

[View source]
def down?(buttons : Array(MouseButton)) #

[View source]
def pressed?(button : MouseButton) #

[View source]
def pressed?(buttons : Array(MouseButton)) #

[View source]
def released?(button : MouseButton) #

[View source]
def released?(buttons : Array(MouseButton)) #

[View source]
def up?(button : MouseButton) #

[View source]
def up?(buttons : Array(MouseButton)) #

[View source]