module
Crame::Keyboard
Overview
The Keyboard module contains all the functions that allow you to use your keyboard
in your game (mainly #down?, #pressed? and #released?).
Extended Modules
Defined in:
crame/keyboard.crInstance Method Summary
-
#down?(key : Key) : Bool
Returns
trueif thekeyis held down,falseotherwise. -
#pressed?(key : Key) : Bool
Returns
trueif thekeyhas just been pressed,falseotherwise. -
#released?(key : Key) : Bool
Returns
trueif thekeyhas just been released,falseotherwise.