All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mingwX64Main.com.soywiz.korgw.KeyMapping.kt Maven / Gradle / Ivy

There is a newer version: 4.0.10
Show newest version
package com.soywiz.korgw

import com.soywiz.korev.Key


const val VK_ABNT_C1 = 0xC1
const val VK_ABNT_C2 = 0xC2
const val VK_ADD = 0x6B
const val VK_ATTN = 0xF6
const val VK_BACK = 0x08
const val VK_CANCEL = 0x03
const val VK_CLEAR = 0x0C
const val VK_CRSEL = 0xF7
const val VK_DECIMAL = 0x6E
const val VK_DIVIDE = 0x6F
const val VK_EREOF = 0xF9
const val VK_ESCAPE = 0x1B
const val VK_EXECUTE = 0x2B
const val VK_EXSEL = 0xF8
const val VK_ICO_CLEAR = 0xE6
const val VK_ICO_HELP = 0xE3
const val VK_KEY_0 = 0x30
const val VK_KEY_1 = 0x31
const val VK_KEY_2 = 0x32
const val VK_KEY_3 = 0x33
const val VK_KEY_4 = 0x34
const val VK_KEY_5 = 0x35
const val VK_KEY_6 = 0x36
const val VK_KEY_7 = 0x37
const val VK_KEY_8 = 0x38
const val VK_KEY_9 = 0x39
const val VK_KEY_A = 0x41
const val VK_KEY_B = 0x42
const val VK_KEY_C = 0x43
const val VK_KEY_D = 0x44
const val VK_KEY_E = 0x45
const val VK_KEY_F = 0x46
const val VK_KEY_G = 0x47
const val VK_KEY_H = 0x48
const val VK_KEY_I = 0x49
const val VK_KEY_J = 0x4A
const val VK_KEY_K = 0x4B
const val VK_KEY_L = 0x4C
const val VK_KEY_M = 0x4D
const val VK_KEY_N = 0x4E
const val VK_KEY_O = 0x4F
const val VK_KEY_P = 0x50
const val VK_KEY_Q = 0x51
const val VK_KEY_R = 0x52
const val VK_KEY_S = 0x53
const val VK_KEY_T = 0x54
const val VK_KEY_U = 0x55
const val VK_KEY_V = 0x56
const val VK_KEY_W = 0x57
const val VK_KEY_X = 0x58
const val VK_KEY_Y = 0x59
const val VK_KEY_Z = 0x5A
const val VK_MULTIPLY = 0x6A
const val VK_NONAME = 0xFC
const val VK_NUMPAD0 = 0x60
const val VK_NUMPAD1 = 0x61
const val VK_NUMPAD2 = 0x62
const val VK_NUMPAD3 = 0x63
const val VK_NUMPAD4 = 0x64
const val VK_NUMPAD5 = 0x65
const val VK_NUMPAD6 = 0x66
const val VK_NUMPAD7 = 0x67
const val VK_NUMPAD8 = 0x68
const val VK_NUMPAD9 = 0x69
const val VK_OEM_1 = 0xBA
const val VK_OEM_102 = 0xE2
const val VK_OEM_2 = 0xBF
const val VK_OEM_3 = 0xC0
const val VK_OEM_4 = 0xDB
const val VK_OEM_5 = 0xDC
const val VK_OEM_6 = 0xDD
const val VK_OEM_7 = 0xDE
const val VK_OEM_8 = 0xDF
const val VK_OEM_ATTN = 0xF0
const val VK_OEM_AUTO = 0xF3
const val VK_OEM_AX = 0xE1
const val VK_OEM_BACKTAB = 0xF5
const val VK_OEM_CLEAR = 0xFE
const val VK_OEM_COMMA = 0xBC
const val VK_OEM_COPY = 0xF2
const val VK_OEM_CUSEL = 0xEF
const val VK_OEM_ENLW = 0xF4
const val VK_OEM_FINISH = 0xF1
const val VK_OEM_FJ_LOYA = 0x95
const val VK_OEM_FJ_MASSHOU = 0x93
const val VK_OEM_FJ_ROYA = 0x96
const val VK_OEM_FJ_TOUROKU = 0x94
const val VK_OEM_JUMP = 0xEA
const val VK_OEM_MINUS = 0xBD
const val VK_OEM_PA1 = 0xEB
const val VK_OEM_PA2 = 0xEC
const val VK_OEM_PA3 = 0xED
const val VK_OEM_PERIOD = 0xBE
const val VK_OEM_PLUS = 0xBB
const val VK_OEM_RESET = 0xE9
const val VK_OEM_WSCTRL = 0xEE
const val VK_PA1 = 0xFD
const val VK_PACKET = 0xE7
const val VK_PLAY = 0xFA
const val VK_PROCESSKEY = 0xE5
const val VK_RETURN = 0x0D
const val VK_SELECT = 0x29
const val VK_SEPARATOR = 0x6C
const val VK_SPACE = 0x20
const val VK_SUBTRACT = 0x6D
const val VK_TAB = 0x09
const val VK_ZOOM = 0xFB
const val VK__none_ = 0xFF
const val VK_ACCEPT = 0x1E
const val VK_APPS = 0x5D
const val VK_BROWSER_BACK = 0xA6
const val VK_BROWSER_FAVORITES = 0xAB
const val VK_BROWSER_FORWARD = 0xA7
const val VK_BROWSER_HOME = 0xAC
const val VK_BROWSER_REFRESH = 0xA8
const val VK_BROWSER_SEARCH = 0xAA
const val VK_BROWSER_STOP = 0xA9
const val VK_CAPITAL = 0x14
const val VK_CONVERT = 0x1C
const val VK_DELETE = 0x2E
const val VK_DOWN = 0x28
const val VK_END = 0x23
const val VK_F1 = 0x70
const val VK_F10 = 0x79
const val VK_F11 = 0x7A
const val VK_F12 = 0x7B
const val VK_F13 = 0x7C
const val VK_F14 = 0x7D
const val VK_F15 = 0x7E
const val VK_F16 = 0x7F
const val VK_F17 = 0x80
const val VK_F18 = 0x81
const val VK_F19 = 0x82
const val VK_F2 = 0x71
const val VK_F20 = 0x83
const val VK_F21 = 0x84
const val VK_F22 = 0x85
const val VK_F23 = 0x86
const val VK_F24 = 0x87
const val VK_F3 = 0x72
const val VK_F4 = 0x73
const val VK_F5 = 0x74
const val VK_F6 = 0x75
const val VK_F7 = 0x76
const val VK_F8 = 0x77
const val VK_F9 = 0x78
const val VK_FINAL = 0x18
const val VK_HELP = 0x2F
const val VK_HOME = 0x24
const val VK_ICO_00 = 0xE4
const val VK_INSERT = 0x2D
const val VK_JUNJA = 0x17
const val VK_KANA = 0x15
const val VK_KANJI = 0x19
const val VK_LAUNCH_APP1 = 0xB6
const val VK_LAUNCH_APP2 = 0xB7
const val VK_LAUNCH_MAIL = 0xB4
const val VK_LAUNCH_MEDIA_SELECT = 0xB5
const val VK_LBUTTON = 0x01
const val VK_LCONTROL = 0xA2
const val VK_LEFT = 0x25
const val VK_LMENU = 0xA4
const val VK_LSHIFT = 0xA0
const val VK_LWIN = 0x5B
const val VK_MBUTTON = 0x04
const val VK_MEDIA_NEXT_TRACK = 0xB0
const val VK_MEDIA_PLAY_PAUSE = 0xB3
const val VK_MEDIA_PREV_TRACK = 0xB1
const val VK_MEDIA_STOP = 0xB2
const val VK_MODECHANGE = 0x1F
const val VK_NEXT = 0x22
const val VK_NONCONVERT = 0x1D
const val VK_NUMLOCK = 0x90
const val VK_OEM_FJ_JISHO = 0x92
const val VK_PAUSE = 0x13
const val VK_PRINT = 0x2A
const val VK_PRIOR = 0x21
const val VK_RBUTTON = 0x02
const val VK_RCONTROL = 0xA3
const val VK_RIGHT = 0x27
const val VK_RMENU = 0xA5
const val VK_RSHIFT = 0xA1
const val VK_RWIN = 0x5C
const val VK_SCROLL = 0x91
const val VK_SLEEP = 0x5F
const val VK_SNAPSHOT = 0x2C
const val VK_UP = 0x26
const val VK_VOLUME_DOWN = 0xAE
const val VK_VOLUME_MUTE = 0xAD
const val VK_VOLUME_UP = 0xAF
const val VK_XBUTTON1 = 0x05
const val VK_XBUTTON2 = 0x06

val KEYS = mapOf(
    VK_ABNT_C1 to Key.ABNT_C1,
    VK_ABNT_C2 to Key.ABNT_C2,
    VK_ADD to Key.KP_ADD,
    VK_ATTN to Key.ATTN,
    VK_BACK to Key.BACKSPACE,
    VK_CANCEL to Key.CANCEL,
    VK_CLEAR to Key.CLEAR,
    VK_CRSEL to Key.CRSEL,
    VK_DECIMAL to Key.KP_DECIMAL,
    VK_DIVIDE to Key.KP_DIVIDE,
    VK_EREOF to Key.EREOF,
    VK_ESCAPE to Key.ESCAPE,
    VK_EXECUTE to Key.EXECUTE,
    VK_EXSEL to Key.EXSEL,
    VK_ICO_CLEAR to Key.ICO_CLEAR,
    VK_ICO_HELP to Key.ICO_HELP,
    VK_KEY_0 to Key.N0,
    VK_KEY_1 to Key.N1,
    VK_KEY_2 to Key.N2,
    VK_KEY_3 to Key.N3,
    VK_KEY_4 to Key.N4,
    VK_KEY_5 to Key.N5,
    VK_KEY_6 to Key.N6,
    VK_KEY_7 to Key.N7,
    VK_KEY_8 to Key.N8,
    VK_KEY_9 to Key.N9,
    VK_KEY_A to Key.A,
    VK_KEY_B to Key.B,
    VK_KEY_C to Key.C,
    VK_KEY_D to Key.D,
    VK_KEY_E to Key.E,
    VK_KEY_F to Key.F,
    VK_KEY_G to Key.G,
    VK_KEY_H to Key.H,
    VK_KEY_I to Key.I,
    VK_KEY_J to Key.J,
    VK_KEY_K to Key.K,
    VK_KEY_L to Key.L,
    VK_KEY_M to Key.M,
    VK_KEY_N to Key.N,
    VK_KEY_O to Key.O,
    VK_KEY_P to Key.P,
    VK_KEY_Q to Key.Q,
    VK_KEY_R to Key.R,
    VK_KEY_S to Key.S,
    VK_KEY_T to Key.T,
    VK_KEY_U to Key.U,
    VK_KEY_V to Key.V,
    VK_KEY_W to Key.W,
    VK_KEY_X to Key.X,
    VK_KEY_Y to Key.Y,
    VK_KEY_Z to Key.Z,
    VK_MULTIPLY to Key.KP_MULTIPLY,
    VK_NONAME to Key.NONAME,
    VK_NUMPAD0 to Key.N0,
    VK_NUMPAD1 to Key.N1,
    VK_NUMPAD2 to Key.N2,
    VK_NUMPAD3 to Key.N3,
    VK_NUMPAD4 to Key.N4,
    VK_NUMPAD5 to Key.N5,
    VK_NUMPAD6 to Key.N6,
    VK_NUMPAD7 to Key.N7,
    VK_NUMPAD8 to Key.N8,
    VK_NUMPAD9 to Key.N9,
    VK_OEM_1 to Key.OEM1,
    VK_OEM_102 to Key.OEM102,
    VK_OEM_2 to Key.OEM2,
    VK_OEM_3 to Key.OEM3,
    VK_OEM_4 to Key.OEM4,
    VK_OEM_5 to Key.OEM5,
    VK_OEM_6 to Key.OEM6,
    VK_OEM_7 to Key.OEM7,
    VK_OEM_8 to Key.OEM8,
    VK_OEM_ATTN to Key.OEM_ATTN,
    VK_OEM_AUTO to Key.OEM_AUTO,
    VK_OEM_AX to Key.OEM_AX,
    VK_OEM_BACKTAB to Key.OEM_BACKTAB,
    VK_OEM_CLEAR to Key.OEM_CLEAR,
    VK_OEM_COMMA to Key.OEM_COMMA,
    VK_OEM_COPY to Key.OEM_COPY,
    VK_OEM_CUSEL to Key.OEM_CUSEL,
    VK_OEM_ENLW to Key.OEM_ENLW,
    VK_OEM_FINISH to Key.OEM_FINISH,
    VK_OEM_FJ_LOYA to Key.OEM_FJ_LOYA,
    VK_OEM_FJ_MASSHOU to Key.OEM_FJ_MASSHOU,
    VK_OEM_FJ_ROYA to Key.OEM_FJ_ROYA,
    VK_OEM_FJ_TOUROKU to Key.OEM_FJ_TOUROKU,
    VK_OEM_JUMP to Key.OEM_JUMP,
    VK_OEM_MINUS to Key.OEM_MINUS,
    VK_OEM_PA1 to Key.OEM_PA1,
    VK_OEM_PA2 to Key.OEM_PA2,
    VK_OEM_PA3 to Key.OEM_PA3,
    VK_OEM_PERIOD to Key.OEM_PERIOD,
    VK_OEM_PLUS to Key.OEM_PLUS,
    VK_OEM_RESET to Key.OEM_RESET,
    VK_OEM_WSCTRL to Key.OEM_WSCTRL,
    VK_PA1 to Key.PA1,
    VK_PACKET to Key.PACKET,
    VK_PLAY to Key.PLAY,
    VK_PROCESSKEY to Key.PROCESSKEY,
    VK_RETURN to Key.ENTER,
    VK_SELECT to Key.SELECT_KEY,
    VK_SEPARATOR to Key.KP_SEPARATOR,
    VK_SPACE to Key.SPACE,
    VK_SUBTRACT to Key.KP_SUBTRACT,
    VK_TAB to Key.TAB,
    VK_ZOOM to Key.ZOOM,
    VK__none_ to Key.NONE,
    VK_ACCEPT to Key.ACCEPT,
    VK_APPS to Key.APPS,
    VK_BROWSER_BACK to Key.BROWSER_BACK,
    VK_BROWSER_FAVORITES to Key.BROWSER_FAVORITES,
    VK_BROWSER_FORWARD to Key.BROWSER_FORWARD,
    VK_BROWSER_HOME to Key.BROWSER_HOME,
    VK_BROWSER_REFRESH to Key.BROWSER_REFRESH,
    VK_BROWSER_SEARCH to Key.BROWSER_SEARCH,
    VK_BROWSER_STOP to Key.BROWSER_STOP,
    VK_CAPITAL to Key.CAPITAL,
    VK_CONVERT to Key.CONVERT,
    VK_DELETE to Key.DELETE,
    VK_DOWN to Key.DOWN,
    VK_END to Key.END,
    VK_F1 to Key.F1,
    VK_F2 to Key.F2,
    VK_F3 to Key.F3,
    VK_F4 to Key.F4,
    VK_F5 to Key.F5,
    VK_F6 to Key.F6,
    VK_F7 to Key.F7,
    VK_F8 to Key.F8,
    VK_F9 to Key.F9,
    VK_F10 to Key.F10,
    VK_F11 to Key.F11,
    VK_F12 to Key.F12,
    VK_F13 to Key.F13,
    VK_F14 to Key.F14,
    VK_F15 to Key.F15,
    VK_F16 to Key.F16,
    VK_F17 to Key.F17,
    VK_F18 to Key.F18,
    VK_F19 to Key.F19,
    VK_F20 to Key.F20,
    VK_F21 to Key.F21,
    VK_F22 to Key.F22,
    VK_F23 to Key.F23,
    VK_F24 to Key.F24,
    VK_FINAL to Key.FINAL,
    VK_HELP to Key.HELP,
    VK_HOME to Key.HOME,
    VK_ICO_00 to Key.ICO_00,
    VK_INSERT to Key.INSERT,
    VK_JUNJA to Key.JUNJA,
    VK_KANA to Key.KANA,
    VK_KANJI to Key.KANJI,
    VK_LAUNCH_APP1 to Key.LAUNCH_APP1,
    VK_LAUNCH_APP2 to Key.LAUNCH_APP2,
    VK_LAUNCH_MAIL to Key.LAUNCH_MAIL,
    VK_LAUNCH_MEDIA_SELECT to Key.LAUNCH_MEDIA_SELECT,
    VK_LBUTTON to Key.LEFT_BUTTON,
    VK_LCONTROL to Key.LEFT_CONTROL,
    VK_LEFT to Key.LEFT,
    VK_LMENU to Key.LEFT_MENU,
    VK_LSHIFT to Key.LEFT_SHIFT,
    VK_LWIN to Key.LEFT_SUPER,
    VK_MBUTTON to Key.MIDDLE_BUTTON,
    VK_MEDIA_NEXT_TRACK to Key.MEDIA_NEXT_TRACK,
    VK_MEDIA_PLAY_PAUSE to Key.MEDIA_PLAY_PAUSE,
    VK_MEDIA_PREV_TRACK to Key.MEDIA_PREV_TRACK,
    VK_MEDIA_STOP to Key.MEDIA_STOP,
    VK_MODECHANGE to Key.MODECHANGE,
    VK_NEXT to Key.NEXT,
    VK_NONCONVERT to Key.NONCONVERT,
    VK_NUMLOCK to Key.NUM_LOCK,
    VK_OEM_FJ_JISHO to Key.OEM_FJ_JISHO,
    VK_PAUSE to Key.PAUSE,
    VK_PRINT to Key.PRINT_SCREEN,
    VK_PRIOR to Key.PRIOR,
    VK_RBUTTON to Key.RIGHT_BUTTON,
    VK_RCONTROL to Key.RIGHT_CONTROL,
    VK_RIGHT to Key.RIGHT,
    VK_RMENU to Key.RIGHT_MENU,
    VK_RSHIFT to Key.RIGHT_SHIFT,
    VK_RWIN to Key.RIGHT_SUPER,
    VK_SCROLL to Key.SCROLL_LOCK,
    VK_SLEEP to Key.SLEEP,
    VK_SNAPSHOT to Key.SNAPSHOT,
    VK_UP to Key.UP,
    VK_VOLUME_DOWN to Key.VOLUME_DOWN,
    VK_VOLUME_MUTE to Key.VOLUME_MUTE,
    VK_VOLUME_UP to Key.VOLUME_UP,
    VK_XBUTTON1 to Key.XBUTTON1,
    VK_XBUTTON2 to Key.XBUTTON2,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy