class Works::Keys

Defined in:

works/keys.cr

Constant Summary

Pressed = 3_u8
Released = 2_u8
Seen = 1_u8

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def any_just_pressed? #

[View source]
def any_pressed? #

[View source]
def just_pressed?(keycode : Int) #

[View source]
def just_pressed?(keycodes : Array(Int)) #

[View source]
def pressed(keycode : Int) #

[View source]
def pressed?(keycode : Int) #

[View source]
def pressed?(keycodes : Array(Int)) #

[View source]
def released(keycode : Int) #

[View source]
def reset #

[View source]