mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
11b97855c4
* ext/io/console/console.c (console_key_pressed_p): new method IO#pressed? on Windows. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
166 lines
3.2 KiB
Text
166 lines
3.2 KiB
Text
%{
|
|
struct vktable {short ofs; unsigned short vk;};
|
|
static const struct vktable *console_win32_vk(const char *, unsigned int);
|
|
%}
|
|
struct vktable
|
|
%%
|
|
LBUTTON, VK_LBUTTON
|
|
RBUTTON, VK_RBUTTON
|
|
CANCEL, VK_CANCEL
|
|
MBUTTON, VK_MBUTTON
|
|
XBUTTON1, VK_XBUTTON1
|
|
XBUTTON2, VK_XBUTTON2
|
|
BACK, VK_BACK
|
|
TAB, VK_TAB
|
|
CLEAR, VK_CLEAR
|
|
RETURN, VK_RETURN
|
|
SHIFT, VK_SHIFT
|
|
CONTROL, VK_CONTROL
|
|
MENU, VK_MENU
|
|
PAUSE, VK_PAUSE
|
|
CAPITAL, VK_CAPITAL
|
|
KANA, VK_KANA
|
|
HANGEUL, VK_HANGEUL
|
|
HANGUL, VK_HANGUL
|
|
JUNJA, VK_JUNJA
|
|
FINAL, VK_FINAL
|
|
HANJA, VK_HANJA
|
|
KANJI, VK_KANJI
|
|
ESCAPE, VK_ESCAPE
|
|
CONVERT, VK_CONVERT
|
|
NONCONVERT, VK_NONCONVERT
|
|
ACCEPT, VK_ACCEPT
|
|
MODECHANGE, VK_MODECHANGE
|
|
SPACE, VK_SPACE
|
|
PRIOR, VK_PRIOR
|
|
NEXT, VK_NEXT
|
|
END, VK_END
|
|
HOME, VK_HOME
|
|
LEFT, VK_LEFT
|
|
UP, VK_UP
|
|
RIGHT, VK_RIGHT
|
|
DOWN, VK_DOWN
|
|
SELECT, VK_SELECT
|
|
PRINT, VK_PRINT
|
|
EXECUTE, VK_EXECUTE
|
|
SNAPSHOT, VK_SNAPSHOT
|
|
INSERT, VK_INSERT
|
|
DELETE, VK_DELETE
|
|
HELP, VK_HELP
|
|
LWIN, VK_LWIN
|
|
RWIN, VK_RWIN
|
|
APPS, VK_APPS
|
|
SLEEP, VK_SLEEP
|
|
NUMPAD0, VK_NUMPAD0
|
|
NUMPAD1, VK_NUMPAD1
|
|
NUMPAD2, VK_NUMPAD2
|
|
NUMPAD3, VK_NUMPAD3
|
|
NUMPAD4, VK_NUMPAD4
|
|
NUMPAD5, VK_NUMPAD5
|
|
NUMPAD6, VK_NUMPAD6
|
|
NUMPAD7, VK_NUMPAD7
|
|
NUMPAD8, VK_NUMPAD8
|
|
NUMPAD9, VK_NUMPAD9
|
|
MULTIPLY, VK_MULTIPLY
|
|
ADD, VK_ADD
|
|
SEPARATOR, VK_SEPARATOR
|
|
SUBTRACT, VK_SUBTRACT
|
|
DECIMAL, VK_DECIMAL
|
|
DIVIDE, VK_DIVIDE
|
|
F1, VK_F1
|
|
F2, VK_F2
|
|
F3, VK_F3
|
|
F4, VK_F4
|
|
F5, VK_F5
|
|
F6, VK_F6
|
|
F7, VK_F7
|
|
F8, VK_F8
|
|
F9, VK_F9
|
|
F10, VK_F10
|
|
F11, VK_F11
|
|
F12, VK_F12
|
|
F13, VK_F13
|
|
F14, VK_F14
|
|
F15, VK_F15
|
|
F16, VK_F16
|
|
F17, VK_F17
|
|
F18, VK_F18
|
|
F19, VK_F19
|
|
F20, VK_F20
|
|
F21, VK_F21
|
|
F22, VK_F22
|
|
F23, VK_F23
|
|
F24, VK_F24
|
|
NUMLOCK, VK_NUMLOCK
|
|
SCROLL, VK_SCROLL
|
|
OEM_NEC_EQUAL, VK_OEM_NEC_EQUAL
|
|
OEM_FJ_JISHO, VK_OEM_FJ_JISHO
|
|
OEM_FJ_MASSHOU, VK_OEM_FJ_MASSHOU
|
|
OEM_FJ_TOUROKU, VK_OEM_FJ_TOUROKU
|
|
OEM_FJ_LOYA, VK_OEM_FJ_LOYA
|
|
OEM_FJ_ROYA, VK_OEM_FJ_ROYA
|
|
LSHIFT, VK_LSHIFT
|
|
RSHIFT, VK_RSHIFT
|
|
LCONTROL, VK_LCONTROL
|
|
RCONTROL, VK_RCONTROL
|
|
LMENU, VK_LMENU
|
|
RMENU, VK_RMENU
|
|
BROWSER_BACK, VK_BROWSER_BACK
|
|
BROWSER_FORWARD, VK_BROWSER_FORWARD
|
|
BROWSER_REFRESH, VK_BROWSER_REFRESH
|
|
BROWSER_STOP, VK_BROWSER_STOP
|
|
BROWSER_SEARCH, VK_BROWSER_SEARCH
|
|
BROWSER_FAVORITES, VK_BROWSER_FAVORITES
|
|
BROWSER_HOME, VK_BROWSER_HOME
|
|
VOLUME_MUTE, VK_VOLUME_MUTE
|
|
VOLUME_DOWN, VK_VOLUME_DOWN
|
|
VOLUME_UP, VK_VOLUME_UP
|
|
MEDIA_NEXT_TRACK, VK_MEDIA_NEXT_TRACK
|
|
MEDIA_PREV_TRACK, VK_MEDIA_PREV_TRACK
|
|
MEDIA_STOP, VK_MEDIA_STOP
|
|
MEDIA_PLAY_PAUSE, VK_MEDIA_PLAY_PAUSE
|
|
LAUNCH_MAIL, VK_LAUNCH_MAIL
|
|
LAUNCH_MEDIA_SELECT, VK_LAUNCH_MEDIA_SELECT
|
|
LAUNCH_APP1, VK_LAUNCH_APP1
|
|
LAUNCH_APP2, VK_LAUNCH_APP2
|
|
OEM_1, VK_OEM_1
|
|
OEM_PLUS, VK_OEM_PLUS
|
|
OEM_COMMA, VK_OEM_COMMA
|
|
OEM_MINUS, VK_OEM_MINUS
|
|
OEM_PERIOD, VK_OEM_PERIOD
|
|
OEM_2, VK_OEM_2
|
|
OEM_3, VK_OEM_3
|
|
OEM_4, VK_OEM_4
|
|
OEM_5, VK_OEM_5
|
|
OEM_6, VK_OEM_6
|
|
OEM_7, VK_OEM_7
|
|
OEM_8, VK_OEM_8
|
|
OEM_AX, VK_OEM_AX
|
|
OEM_102, VK_OEM_102
|
|
ICO_HELP, VK_ICO_HELP
|
|
ICO_00, VK_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