Module | MyGame::Key |
In: |
mygame/lib/mygame.rb
|
MyGame ではキーボード入力に対応する以下の定数が定義されています。
キー定数 対応キー MyGame::Key::BACKSPACE backspace MyGame::Key::TAB tab MyGame::Key::CLEAR clear クリア MyGame::Key::RETURN return MyGame::Key::PAUSE pause MyGame::Key::ESCAPE escape MyGame::Key::SPACE スペース MyGame::Key::EXCLAIM 感嘆符 MyGame::Key::QUOTEDBL 二重引用符 MyGame::Key::HASH ハッシュ(シャープ) MyGame::Key::DOLLAR ドル MyGame::Key::AMPERSAND アンパサンド MyGame::Key::QUOTE 引用符 MyGame::Key::LEFTPAREN 左丸括弧 MyGame::Key::RIGHTPAREN 右丸括弧 MyGame::Key::ASTERISK アスタリスク MyGame::Key::PLUS プラス MyGame::Key::COMMA カンマ MyGame::Key::MINUS マイナス MyGame::Key::PERIOD ピリオド MyGame::Key::SLASH スラッシュ MyGame::Key::K0 0 MyGame::Key::K1 1 MyGame::Key::K2 2 MyGame::Key::K3 3 MyGame::Key::K4 4 MyGame::Key::K5 5 MyGame::Key::K6 6 MyGame::Key::K7 7 MyGame::Key::K8 8 MyGame::Key::K9 9 MyGame::Key::COLON コロン MyGame::Key::SEMICOLON セミコロン MyGame::Key::LESS 小なり MyGame::Key::EQUALS イコール MyGame::Key::GREATER 大なり MyGame::Key::QUESTION 疑問符 MyGame::Key::AT アットマーク MyGame::Key::LEFTBRACKET 左かぎ括弧 MyGame::Key::BACKSLASH バックスラッシュ MyGame::Key::RIGHTBRACKET 右かぎ括弧 MyGame::Key::CARET キャレット MyGame::Key::UNDERSCORE アンダースコア MyGame::Key::BACKQUOTE 逆引用符 MyGame::Key::A a MyGame::Key::B b MyGame::Key::C c MyGame::Key::D d MyGame::Key::E e MyGame::Key::F f MyGame::Key::G g MyGame::Key::H h MyGame::Key::I i MyGame::Key::J j MyGame::Key::K k MyGame::Key::L l MyGame::Key::M m MyGame::Key::N n MyGame::Key::O o MyGame::Key::P p MyGame::Key::Q q MyGame::Key::R r MyGame::Key::S s MyGame::Key::T t MyGame::Key::U u MyGame::Key::V v MyGame::Key::W w MyGame::Key::X x MyGame::Key::Y y MyGame::Key::Z z MyGame::Key::DELETE delete MyGame::Key::KP0 キーバッド(テンキー)の0 MyGame::Key::KP1 キーバッドの1 MyGame::Key::KP2 キーバッドの2 MyGame::Key::KP3 キーバッドの3 MyGame::Key::KP4 キーバッドの4 MyGame::Key::KP5 キーバッドの5 MyGame::Key::KP6 キーバッドの6 MyGame::Key::KP7 キーバッドの7 MyGame::Key::KP8 キーバッドの8 MyGame::Key::KP9 キーバッドの9 MyGame::Key::KP_PERIOD キーバッドのピリオド MyGame::Key::KP_DIVIDE キーパッドの除算記号 MyGame::Key::KP_MULTIPLY multiply キーバッドの乗算記号 MyGame::Key::KP_MINUS キーバッドのマイナス MyGame::Key::KP_PLUS キーバッドのプラス MyGame::Key::KP_ENTER キーパッドのenter MyGame::Key::KP_EQUALS キーパッドのイコール MyGame::Key::UP 上矢印 MyGame::Key::DOWN 下矢印 MyGame::Key::RIGHT 右矢印 MyGame::Key::LEFT l左矢印 MyGame::Key::INSERT insert MyGame::Key::HOME home MyGame::Key::END end MyGame::Key::PAGEUP page up MyGame::Key::PAGEDOWN page down MyGame::Key::F1 F1 MyGame::Key::F2 F2 MyGame::Key::F3 F3 MyGame::Key::F4 F4 MyGame::Key::F5 F5 MyGame::Key::F6 F6 MyGame::Key::F7 F7 MyGame::Key::F8 F8 MyGame::Key::F9 F9 MyGame::Key::F10 F10 MyGame::Key::F11 F11 MyGame::Key::F12 F12 MyGame::Key::F13 F13 MyGame::Key::F14 F14 MyGame::Key::F15 F15 MyGame::Key::NUMLOCK numlock MyGame::Key::CAPSLOCK capslock MyGame::Key::SCROLLOCK scrollock MyGame::Key::RSHIFT 右shift MyGame::Key::LSHIFT 左shift MyGame::Key::RCTRL 右ctrl MyGame::Key::LCTRL 左ctrl MyGame::Key::RALT 右alt MyGame::Key::LALT 左alt MyGame::Key::RMETA 右meta MyGame::Key::LMETA 左meta MyGame::Key::LSUPER key 左windowsキー MyGame::Key::RSUPER key 右windowsキー MyGame::Key::MODE モードシフト MyGame::Key::HELP help MyGame::Key::PRINT print-screen MyGame::Key::SYSREQ SysRq? MyGame::Key::BREAK break MyGame::Key::MENU menu MyGame::Key::POWER power MyGame::Key::EURO ユーロ