Enum VirtualKeyCode | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Enum VirtualKeyCode

    The list of VirtualKeyCodes (see: http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx)

    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public enum VirtualKeyCode

    Fields

    Name Description Value
    LBUTTON

    Left mouse button

    1
    RBUTTON

    Right mouse button

    2
    CANCEL

    Control-break processing

    3
    MBUTTON

    Middle mouse button (three-button mouse) - NOT contiguous with LBUTTON and RBUTTON

    4
    XBUTTON1

    Windows 2000/XP: X1 mouse button - NOT contiguous with LBUTTON and RBUTTON

    5
    XBUTTON2

    Windows 2000/XP: X2 mouse button - NOT contiguous with LBUTTON and RBUTTON

    6
    BACK

    BACKSPACE key

    8
    TAB

    TAB key

    9
    CLEAR

    CLEAR key

    12
    RETURN

    ENTER key

    13
    SHIFT

    SHIFT key

    16
    CONTROL

    CTRL key

    17
    MENU

    ALT key

    18
    PAUSE

    PAUSE key

    19
    CAPITAL

    CAPS LOCK key

    20
    HANGUL

    IME Hangul mode

    21
    HANGEUL

    IME Hanguel mode (maintained for compatibility; use HANGUL)

    21
    KANA

    Input Method Editor (IME) Kana mode

    21
    JUNJA

    IME Junja mode

    23
    FINAL

    IME final mode

    24
    KANJI

    IME Kanji mode

    25
    HANJA

    IME Hanja mode

    25
    ESCAPE

    ESC key

    27
    CONVERT

    IME convert

    28
    NONCONVERT

    IME nonconvert

    29
    ACCEPT

    IME accept

    30
    MODECHANGE

    IME mode change request

    31
    SPACE

    SPACEBAR

    32
    PRIOR

    PAGE UP key

    33
    NEXT

    PAGE DOWN key

    34
    END

    END key

    35
    HOME

    HOME key

    36
    LEFT

    LEFT ARROW key

    37
    UP

    UP ARROW key

    38
    RIGHT

    RIGHT ARROW key

    39
    DOWN

    DOWN ARROW key

    40
    SELECT

    SELECT key

    41
    PRINT

    PRINT key

    42
    EXECUTE

    EXECUTE key

    43
    SNAPSHOT

    PRINT SCREEN key

    44
    INSERT

    INS key

    45
    DELETE

    DEL key

    46
    HELP

    HELP key

    47
    VK_0

    0 key

    48
    VK_1

    1 key

    49
    VK_2

    2 key

    50
    VK_3

    3 key

    51
    VK_4

    4 key

    52
    VK_5

    5 key

    53
    VK_6

    6 key

    54
    VK_7

    7 key

    55
    VK_8

    8 key

    56
    VK_9

    9 key

    57
    VK_A

    A key

    65
    VK_B

    B key

    66
    VK_C

    C key

    67
    VK_D

    D key

    68
    VK_E

    E key

    69
    VK_F

    F key

    70
    VK_G

    G key

    71
    VK_H

    H key

    72
    VK_I

    I key

    73
    VK_J

    J key

    74
    VK_K

    K key

    75
    VK_L

    L key

    76
    VK_M

    M key

    77
    VK_N

    N key

    78
    VK_O

    O key

    79
    VK_P

    P key

    80
    VK_Q

    Q key

    81
    VK_R

    R key

    82
    VK_S

    S key

    83
    VK_T

    T key

    84
    VK_U

    U key

    85
    VK_V

    V key

    86
    VK_W

    W key

    87
    VK_X

    X key

    88
    VK_Y

    Y key

    89
    VK_Z

    Z key

    90
    LWIN

    Left Windows key (Microsoft Natural keyboard)

    91
    RWIN

    Right Windows key (Natural keyboard)

    92
    APPS

    Applications key (Natural keyboard)

    93
    SLEEP

    Computer Sleep key

    95
    NUMPAD0

    Numeric keypad 0 key

    96
    NUMPAD1

    Numeric keypad 1 key

    97
    NUMPAD2

    Numeric keypad 2 key

    98
    NUMPAD3

    Numeric keypad 3 key

    99
    NUMPAD4

    Numeric keypad 4 key

    100
    NUMPAD5

    Numeric keypad 5 key

    101
    NUMPAD6

    Numeric keypad 6 key

    102
    NUMPAD7

    Numeric keypad 7 key

    103
    NUMPAD8

    Numeric keypad 8 key

    104
    NUMPAD9

    Numeric keypad 9 key

    105
    MULTIPLY

    Multiply key

    106
    ADD

    Add key

    107
    SEPARATOR

    Separator key

    108
    SUBTRACT

    Subtract key

    109
    DECIMAL

    Decimal key

    110
    DIVIDE

    Divide key

    111
    F1

    F1 key

    112
    F2

    F2 key

    113
    F3

    F3 key

    114
    F4

    F4 key

    115
    F5

    F5 key

    116
    F6

    F6 key

    117
    F7

    F7 key

    118
    F8

    F8 key

    119
    F9

    F9 key

    120
    F10

    F10 key

    121
    F11

    F11 key

    122
    F12

    F12 key

    123
    F13

    F13 key

    124
    F14

    F14 key

    125
    F15

    F15 key

    126
    F16

    F16 key

    127
    F17

    F17 key

    128
    F18

    F18 key

    129
    F19

    F19 key

    130
    F20

    F20 key

    131
    F21

    F21 key

    132
    F22

    F22 key

    133
    F23

    F23 key

    134
    F24

    F24 key

    135
    NUMLOCK

    NUM LOCK key

    144
    SCROLL

    SCROLL LOCK key

    145
    LSHIFT

    Left SHIFT key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    160
    RSHIFT

    Right SHIFT key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    161
    LCONTROL

    Left CONTROL key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    162
    RCONTROL

    Right CONTROL key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    163
    LMENU

    Left MENU key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    164
    RMENU

    Right MENU key - Used only as parameters to GetAsyncKeyState() and GetKeyState()

    165
    BROWSER_BACK

    Windows 2000/XP: Browser Back key

    166
    BROWSER_FORWARD

    Windows 2000/XP: Browser Forward key

    167
    BROWSER_REFRESH

    Windows 2000/XP: Browser Refresh key

    168
    BROWSER_STOP

    Windows 2000/XP: Browser Stop key

    169
    BROWSER_SEARCH

    Windows 2000/XP: Browser Search key

    170
    BROWSER_FAVORITES

    Windows 2000/XP: Browser Favorites key

    171
    BROWSER_HOME

    Windows 2000/XP: Browser Start and Home key

    172
    VOLUME_MUTE

    Windows 2000/XP: Volume Mute key

    173
    VOLUME_DOWN

    Windows 2000/XP: Volume Down key

    174
    VOLUME_UP

    Windows 2000/XP: Volume Up key

    175
    MEDIA_NEXT_TRACK

    Windows 2000/XP: Next Track key

    176
    MEDIA_PREV_TRACK

    Windows 2000/XP: Previous Track key

    177
    MEDIA_STOP

    Windows 2000/XP: Stop Media key

    178
    MEDIA_PLAY_PAUSE

    Windows 2000/XP: Play/Pause Media key

    179
    LAUNCH_MAIL

    Windows 2000/XP: Start Mail key

    180
    LAUNCH_MEDIA_SELECT

    Windows 2000/XP: Select Media key

    181
    LAUNCH_APP1

    Windows 2000/XP: Start Application 1 key

    182
    LAUNCH_APP2

    Windows 2000/XP: Start Application 2 key

    183
    OEM_1

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ';:' key

    186
    OEM_PLUS

    Windows 2000/XP: For any country/region, the '+' key

    187
    OEM_COMMA

    Windows 2000/XP: For any country/region, the ',' key

    188
    OEM_MINUS

    Windows 2000/XP: For any country/region, the '-' key

    189
    OEM_PERIOD

    Windows 2000/XP: For any country/region, the '.' key

    190
    OEM_2

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '/?' key

    191
    OEM_3

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '`~' key

    192
    OEM_4

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '[{' key

    219
    OEM_5

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '|' key

    220
    OEM_6

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ']}' key

    221
    OEM_7

    Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the 'single-quote/double-quote' key

    222
    OEM_8

    Used for miscellaneous characters; it can vary by keyboard.

    223
    OEM_102

    Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard

    226
    PROCESSKEY

    Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key

    229
    PACKET

    Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP

    231
    ATTN

    Attn key

    246
    CRSEL

    CrSel key

    247
    EXSEL

    ExSel key

    248
    EREOF

    Erase EOF key

    249
    PLAY

    Play key

    250
    ZOOM

    Zoom key

    251
    NONAME

    Reserved

    252
    PA1

    PA1 key

    253
    OEM_CLEAR

    Clear key

    254
    In This Article
    • Fields
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023