class Vm::Keyboard

Defined in:

vm/keyboard.cr

Constant Summary

KEYMAP = {LibSDL::Keycode::KEY_1 => 1, LibSDL::Keycode::KEY_2 => 2, LibSDL::Keycode::KEY_3 => 3, LibSDL::Keycode::KEY_4 => 12, LibSDL::Keycode::Q => 4, LibSDL::Keycode::W => 5, LibSDL::Keycode::E => 6, LibSDL::Keycode::R => 13, LibSDL::Keycode::A => 7, LibSDL::Keycode::S => 8, LibSDL::Keycode::D => 9, LibSDL::Keycode::F => 14, LibSDL::Keycode::Z => 10, LibSDL::Keycode::X => 0, LibSDL::Keycode::C => 11, LibSDL::Keycode::V => 15}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def any_key_pressed? #

[View source]
def key(n : UInt8) #

[View source]
def poll #

[View source]
def pressed?(n : UInt8) #

[View source]
def pressed_key #

[View source]