class Bench::Keys

Defined in:

bench/keys.cr

Constant Summary

KeyPressed = 3
KeyReleased = 2
KeySeen = 1

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def any_just_pressed?(keycodes : Array(Int)) #

[View source]
def any_pressed? #

[View source]
def just_pressed?(keycode : 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]