Module: Chingu::Input

Includes:
Gosu
Defined in:
lib/chingu/input.rb

Constant Summary

CONSTANT_TO_SYMBOL =

Ruby symbols describing www.libgosu.org/rdoc/classes/Gosu.html

{
  Kb0 => [:zero],
  Kb1 => [:one],
  Kb2 => [:two],
  Kb3 => [:three],
  Kb4 => [:four],
  Kb5 => [:five],
  Kb6 => [:six],
  Kb7 => [:seven],
  Kb8 => [:eight],
  Kb9 => [:nine],

  KbBackspace => [:backspace],
  KbDelete    => [:delete, :del],
  KbDown      => [:down_arrow, :down],
  KbEnd       => [:end],
  KbEnter     => [:enter],
  KbEscape    => [:escape, :esc],

  KbHome        => [:home],
  KbInsert      => [:insert, :ins],
  KbLeft        => [:left_arrow, :left],
  KbLeftAlt     => [:left_alt, :lalt],
  KbLeftControl => [:left_control, :left_ctrl, :lctrl],
  KbLeftShift   => [:left_shift, :lshift],
  KbLeftMeta    => [:left_meta, :lmeta],
  
  
  KbNumpadAdd       => [:"+", :add, :plus],
  KbNumpadDivide    => [:"/", :divide],
  KbNumpadMultiply  => [:"*", :multiply],
  KbNumpadSubtract  => [:"-", :subtract, :minus],
  KbPageDown        => [:page_down],
  KbPageUp          => [:page_up],
  # KbPause           => [:pause],
  KbReturn          => [:return],
  KbRight           => [:right_arrow, :right],
  KbRightAlt        => [:right_alt, :ralt],
  KbRightControl    => [:right_control, :right_ctrl, :rctrl],
  KbRightShift      => [:right_shift, :rshift],
  KbRightMeta       => [:right_meta, :rmeta],
  KbSpace           => [:" ", :space],
  KbTab             => [:tabulator, :tab],
  KbUp              => [:up_arrow, :up],
  
  MsLeft            => [:left_mouse_button, :mouse_left],
  MsMiddle          => [:middle_mouse_button, :mouse_middle],
  MsRight           => [:right_mouse_button, :mouse_right],
  MsWheelDown       => [:mouse_wheel_down, :wheel_down],
  MsWheelUp         => [:mouse_wheel_up, :wheel_up],
  
  GpDown            => [:gamepad_down, :gp_down, :pad_down],
  GpLeft            => [:gamepad_left, :gp_left, :pad_left],
  GpRight           => [:gamepad_right, :gp_right, :pad_right],
  GpUp              => [:gamepad_up, :gp_up, :pad_up]
}
SYMBOL_TO_CONSTANT =

Reverse CONSTANT_TO_SYMBOL -> SYMBOL_TO_CONSTNT like: SYMBOL_TO_CONSTANT = CONSTANT_TO_SYMBOL.invert.dup

Hash.new

Constants included from Gosu

Gosu::Sound