Skip to content

GameCore.Platform ​

PointerButtons 双端 ​

命名空间 GameCore.Platform.SDL

csharp
public enum PointerButtons

Defines pointer button flags for the SDL platform, supporting bitwise combinations for multi-button input.

备注

This enum represents mouse buttons and other pointer device buttons (such as touch screen) that can be pressed simultaneously. Multiple buttons can be combined using bitwise operations to represent complex input states. The buttons are numbered from 1 to 32, with additional special values for common operations.

枚举值 ​

  • None = 0u — No pointer buttons are pressed.
  • Button1 = 1u — Pointer button 1 (When using mouse, it's typically the left mouse button).
  • Button2 = 2u — Pointer button 2 (When using mouse, it's typically the middle mouse button or scroll wheel click).
  • Button3 = 4u — Pointer button 3 (When using mouse, it's typically the right mouse button).
  • Button4 = 8u — Pointer button 4.
  • Button5 = 0x10u — Pointer button 5.
  • Button6 = 0x20u — Pointer button 6.
  • Button7 = 0x40u — Pointer button 7.
  • Button8 = 0x80u — Pointer button 8.
  • Button9 = 0x100u — Pointer button 9.
  • Button10 = 0x200u — Pointer button 10.
  • Button11 = 0x400u — Pointer button 11.
  • Button12 = 0x800u — Pointer button 12.
  • Button13 = 0x1000u — Pointer button 13.
  • Button14 = 0x2000u — Pointer button 14.
  • Button15 = 0x4000u — Pointer button 15.
  • Button16 = 0x8000u — Pointer button 16.
  • Button17 = 0x10000u — Pointer button 17.
  • Button18 = 0x20000u — Pointer button 18.
  • Button19 = 0x40000u — Pointer button 19.
  • Button20 = 0x80000u — Pointer button 20.
  • Button21 = 0x100000u — Pointer button 21.
  • Button22 = 0x200000u — Pointer button 22.
  • Button23 = 0x400000u — Pointer button 23.
  • Button24 = 0x800000u — Pointer button 24.
  • Button25 = 0x1000000u — Pointer button 25.
  • Button26 = 0x2000000u — Pointer button 26.
  • Button27 = 0x4000000u — Pointer button 27.
  • Button28 = 0x8000000u — Pointer button 28.
  • Button29 = 0x10000000u — Pointer button 29.
  • Button30 = 0x20000000u — Pointer button 30.
  • Button31 = 0x40000000u — Pointer button 31.
  • Button32 = 0x80000000u — Pointer button 32.
  • All = uint.MaxValue — All pointer buttons are pressed (bitwise combination of all button flags).

VirtualKey 双端 ​

命名空间 GameCore.Platform.SDL

csharp
public enum VirtualKey

枚举值 ​

  • Unknown = 0
  • Return = 13
  • Escape = 27
  • Backspace = 8
  • Tab = 9
  • Space = 32
  • Exclaim = 33 — !
  • QuoteDouble = 34 — "
  • Hash = 35 — #
  • Percent = 37 — %
  • Dollar = 36 — $
  • Ampersand = 38 — &
  • Quote = 39 — '
  • LeftParenthesis = 40 — (
  • RightParenthesis = 41 — )
  • Asterisk = 42 — *
  • Plus = 43 — +
  • Comma = 44 — ,
  • Minus = 45 — -
  • Period = 46 — .
  • Slash = 47 — /
  • Number0 = 48
  • Number1 = 49
  • Number2 = 50
  • Number3 = 51
  • Number4 = 52
  • Number5 = 53
  • Number6 = 54
  • Number7 = 55
  • Number8 = 56
  • Number9 = 57
  • Colon = 58 — :
  • Semicolon = 59 — ;
  • Less = 60 — <
  • Equals = 61 — =
  • Greater = 62 — >
  • Question = 63 — ?
  • At = 64 — @
  • LeftBracket = 91 — [
  • Backslash = 92 — \
  • RightBracket = 93 — ]
  • Caret = 94 — ^
  • Underscore = 95 — _
  • Backquote = 96 — `
  • A = 97
  • B = 98
  • C = 99
  • D = 100
  • E = 101
  • F = 102
  • G = 103
  • H = 104
  • I = 105
  • J = 106
  • K = 107
  • L = 108
  • M = 109
  • N = 110
  • O = 111
  • P = 112
  • Q = 113
  • R = 114
  • S = 115
  • T = 116
  • U = 117
  • V = 118
  • W = 119
  • X = 120
  • Y = 121
  • Z = 122
  • CapitalLock = 1073741881
  • F1 = 1073741882
  • F2 = 1073741883
  • F3 = 1073741884
  • F4 = 1073741885
  • F5 = 1073741886
  • F6 = 1073741887
  • F7 = 1073741888
  • F8 = 1073741889
  • F9 = 1073741890
  • F10 = 1073741891
  • F11 = 1073741892
  • F12 = 1073741893
  • PrintScreen = 1073741894
  • Scroll = 1073741895
  • Pause = 1073741896
  • Insert = 1073741897
  • Home = 1073741898
  • PageUp = 1073741899
  • Delete = 127
  • End = 1073741901
  • PageDown = 1073741902
  • Right = 1073741903
  • Left = 1073741904
  • Down = 1073741905
  • Up = 1073741906
  • NumLockClear = 1073741907
  • NumPadDivide = 1073741908 — Num /
  • NumPadMultiply = 1073741909 — Num *
  • NumPadMinus = 1073741910 — Num -
  • NumPadPlus = 1073741911 — Num +
  • NumPadEnter = 1073741912 — Num Enter
  • NumPad1 = 1073741913
  • NumPad2 = 1073741914
  • NumPad3 = 1073741915
  • NumPad4 = 1073741916
  • NumPad5 = 1073741917
  • NumPad6 = 1073741918
  • NumPad7 = 1073741919
  • NumPad8 = 1073741920
  • NumPad9 = 1073741921
  • NumPad0 = 1073741922
  • NumPadPeriod = 1073741923 — Num .
  • Application = 1073741925
  • Power = 1073741926
  • NumPadEquals = 1073741927 — Num =
  • F13 = 1073741928
  • F14 = 1073741929
  • F15 = 1073741930
  • F16 = 1073741931
  • F17 = 1073741932
  • F18 = 1073741933
  • F19 = 1073741934
  • F20 = 1073741935
  • F21 = 1073741936
  • F22 = 1073741937
  • F23 = 1073741938
  • F24 = 1073741939
  • Execute = 1073741940
  • Help = 1073741941
  • Menu = 1073741942
  • Select = 1073741943
  • Stop = 1073741944
  • Again = 1073741945
  • Undo = 1073741946
  • Cut = 1073741947
  • Copy = 1073741948
  • Paste = 1073741949
  • Find = 1073741950
  • Mute = 1073741951
  • VolumeUp = 1073741952
  • VolumeDown = 1073741953
  • NumPadComma = 1073741957 — Num ,
  • NumPadEqualsAs400 = 1073741958
  • AltErase = 1073741977
  • SysReq = 1073741978
  • Cancel = 1073741979
  • Clear = 1073741980
  • Prior = 1073741981
  • Return2 = 1073741982
  • Separator = 1073741983
  • Out = 1073741984
  • Oper = 1073741985
  • ClearAgain = 1073741986
  • CursorSelect = 1073741987
  • ExtendSelection = 1073741988
  • NumPad00 = 1073742000
  • NumPad000 = 1073742001
  • ThousandsSeparator = 1073742002
  • DecimalSeparator = 1073742003
  • CurrencyUnit = 1073742004
  • CurrencySubunit = 1073742005
  • NumPadLeftParenthesis = 1073742006
  • NumPadRightParenthesis = 1073742007
  • NumPadLeftBrace = 1073742008
  • NumPadRightBrace = 1073742009
  • NumPadTab = 1073742010
  • NumPadBackspace = 1073742011
  • NumPadA = 1073742012
  • NumPadB = 1073742013
  • NumPadC = 1073742014
  • NumPadD = 1073742015
  • NumPadE = 1073742016
  • NumPadF = 1073742017
  • NumPadXor = 1073742018
  • NumPadPower = 1073742019
  • NumPadPercent = 1073742020
  • NumPadLess = 1073742021
  • NumPadGreater = 1073742022
  • NumPadAmpersand = 1073742023
  • NumPadDoubleAmpersand = 1073742024
  • NumPadVerticalBar = 1073742025
  • NumPadDoubleVerticalBar = 1073742026
  • NumPadColon = 1073742027
  • NumPadHash = 1073742028
  • NumPadSpace = 1073742029
  • NumPadAt = 1073742030
  • NumPadExclamation = 1073742031
  • NumPadMemoryStore = 1073742032
  • NumPadMemoryRecall = 1073742033
  • NumPadMemoryClear = 1073742034
  • NumPadMemoryAdd = 1073742035
  • NumPadMemorySubtract = 1073742036
  • NumPadMemoryMultiply = 1073742037
  • NumPadMemoryDivide = 1073742038
  • NumPadPlusMinus = 1073742039
  • NumPadClear = 1073742040
  • NumPadClearEntry = 1073742041
  • NumPadBinary = 1073742042
  • NumPadOctal = 1073742043
  • NumPadDecimal = 1073742044
  • NumPadHexadecimal = 1073742045
  • LeftCtrl = 1073742048
  • LeftShift = 1073742049
  • LeftAlt = 1073742050
  • LeftWindows = 1073742051
  • RightCtrl = 1073742052
  • RightShift = 1073742053
  • RightAlt = 1073742054
  • RightWindows = 1073742055
  • Mode = 1073742081
  • AudioNext = 1073742082
  • AudioPrevious = 1073742083
  • AudioStop = 1073742084
  • AudioPlay = 1073742085
  • AudioMute = 1073742086
  • MediaSelect = 1073742087
  • WWW = 1073742088
  • Mail = 1073742089
  • Calculator = 1073742090
  • Computer = 1073742091
  • AcSearch = 1073742092
  • AcHome = 1073742093
  • AcBack = 1073742094
  • AcForward = 1073742095
  • AcStop = 1073742096
  • AcRefresh = 1073742097
  • AcBookmarks = 1073742098
  • BrightnessDown = 1073742099
  • BrightnessUp = 1073742100
  • DisplaySwitch = 1073742101
  • KeyboardIlluminationToggle = 1073742102
  • KeyboardIlluminationDown = 1073742103
  • KeyboardIlluminationUp = 1073742104
  • Eject = 1073742105
  • Sleep = 1073742106
  • App1 = 1073742107
  • App2 = 1073742108
  • AudioRewind = 1073742109
  • AudioFastForward = 1073742110
  • SoftLeft = 1073742111
  • SoftRight = 1073742112
  • Call = 1073742113
  • EndCall = 1073742114

VirtualKeyModifiers 双端 ​

命名空间 GameCore.Platform.SDL

csharp
public enum VirtualKeyModifiers

Defines keyboard modifier key flags for the SDL platform, supporting bitwise combinations.

备注

This enum represents the various modifier keys that can be held down while pressing other keys, such as Shift, Ctrl, Alt, and Windows keys. Multiple modifiers can be combined using bitwise operations. The values correspond to SDL's native KMOD constants for cross-platform compatibility.

枚举值 ​

  • None = 0 — No modifier keys are pressed.
  • LeftShift = 1 — The left Shift key is pressed.
  • RightShift = 2 — The right Shift key is pressed.
  • LeftCtrl = 0x40 — The left Ctrl key is pressed.
  • RightCtrl = 0x80 — The right Ctrl key is pressed.
  • LeftAlt = 0x100 — The left Alt key is pressed.
  • RightAlt = 0x200 — The right Alt key is pressed.
  • LeftWindows = 0x400 — The left Windows/GUI key is pressed.
  • RightWindows = 0x800 — The right Windows/GUI key is pressed.
  • NumberKeyLock = 0x1000 — The Num Lock key is active.
  • CapitalLock = 0x2000 — The Caps Lock key is active.
  • Mode = 0x4000 — The AltGr/Mode key is pressed.
  • Scroll = 0x8000 — The Scroll Lock key is active.
  • Ctrl = 0xC0 — Either Ctrl key is pressed (combination of left and right Ctrl).
  • Shift = 3 — Either Shift key is pressed (combination of left and right Shift).
  • Alt = 0x300 — Either Alt key is pressed (combination of left and right Alt).
  • Windows = 0xC00 — Either Windows/GUI key is pressed (combination of left and right Windows keys).

Variant 双端 ​

命名空间 GameCore.Platform.Urho

csharp
public struct Variant

构造函数 ​

Variant 双端 ​

csharp
public Variant(int value)

Variant 双端 ​

csharp
public Variant(float value)

Variant 双端 ​

csharp
public Variant(string value)

Variant 双端 ​

csharp
public Variant(UTF8String value)

Variant 双端 ​

csharp
public Variant(bool value)

Variant 双端 ​

csharp
public Variant(long value)

Variant 双端 ​

csharp
public Variant(double value)

Variant 双端 ​

csharp
public Variant(Vector2 value)

Variant 双端 ​

csharp
public Variant(Vector3 value)

Variant 双端 ​

csharp
public Variant(Vector4 value)

Variant 双端 ​

csharp
public Variant(Quaternion value)

Variant 双端 ​

csharp
public Variant(Color value)

Variant 双端 ​

csharp
public Variant(Rectangle value)

Variant 双端 ​

csharp
public Variant(RectangleF value)

Variant 双端 ​

csharp
public Variant(Matrix4x4 matrix4X4)

属性 ​

Type 双端 ​

csharp
public VariantType Type { get; set; }

Value 双端 ​

csharp
public UTF8String Value { get; set; }

方法 ​

ToString 双端 ​

csharp
public override readonly string ToString()

VariantType 双端 ​

命名空间 GameCore.Platform.Urho

csharp
public enum VariantType

枚举值 ​

  • None
  • Int
  • Bool
  • Float
  • Vector2
  • Vector3
  • Vector4
  • Quaternion
  • Color
  • String
  • Buffer
  • VoidPtr
  • ResourceRef
  • ResourceRefList
  • VariantVector
  • VariantMap
  • IntRect
  • IntVector2
  • Ptr
  • Matrix3
  • Matrix3x4
  • Matrix4
  • Double
  • StringVector
  • Rect
  • IntVector3
  • Int64
  • CustomHeap
  • CustomStack
  • MaxVarTypes

VirtualKeyModifiers 双端 ​

命名空间 GameCore.Platform.Urho

csharp
public enum VirtualKeyModifiers

枚举值 ​

  • None = 0
  • Shift = 1
  • Ctrl = 2
  • Alt = 4

VirtualKey 双端 ​

命名空间 GameCore.Platform.Windows

csharp
public enum VirtualKey

枚举值 ​

  • None = 0
  • LeftButton = 1
  • RightButton = 2
  • Cancel = 3
  • MiddleButton = 4
  • XButton1 = 5
  • XButton2 = 6
  • Back = 8
  • Tab = 9
  • Clear = 12
  • Enter = 13
  • Shift = 16
  • Control = 17
  • Menu = 18
  • Pause = 19
  • CapitalLock = 20
  • Kana = 21
  • Hangul = 21
  • Junja = 23
  • Final = 24
  • Hanja = 25
  • Kanji = 25
  • Escape = 27
  • Convert = 28
  • NonConvert = 29
  • Accept = 30
  • ModeChange = 31
  • Space = 32
  • PageUp = 33
  • PageDown = 34
  • End = 35
  • Home = 36
  • Left = 37
  • Up = 38
  • Right = 39
  • Down = 40
  • Select = 41
  • Print = 42
  • Execute = 43
  • Snapshot = 44
  • Insert = 45
  • Delete = 46
  • Help = 47
  • Number0 = 48
  • Number1 = 49
  • Number2 = 50
  • Number3 = 51
  • Number4 = 52
  • Number5 = 53
  • Number6 = 54
  • Number7 = 55
  • Number8 = 56
  • Number9 = 57
  • A = 65
  • B = 66
  • C = 67
  • D = 68
  • E = 69
  • F = 70
  • G = 71
  • H = 72
  • I = 73
  • J = 74
  • K = 75
  • L = 76
  • M = 77
  • N = 78
  • O = 79
  • P = 80
  • Q = 81
  • R = 82
  • S = 83
  • T = 84
  • U = 85
  • V = 86
  • W = 87
  • X = 88
  • Y = 89
  • Z = 90
  • LeftWindows = 91
  • RightWindows = 92
  • Application = 93
  • Sleep = 95
  • NumberPad0 = 96
  • NumberPad1 = 97
  • NumberPad2 = 98
  • NumberPad3 = 99
  • NumberPad4 = 100
  • NumberPad5 = 101
  • NumberPad6 = 102
  • NumberPad7 = 103
  • NumberPad8 = 104
  • NumberPad9 = 105
  • Multiply = 106
  • Add = 107
  • Separator = 108
  • Subtract = 109
  • Decimal = 110
  • Divide = 111
  • F1 = 112
  • F2 = 113
  • F3 = 114
  • F4 = 115
  • F5 = 116
  • F6 = 117
  • F7 = 118
  • F8 = 119
  • F9 = 120
  • F10 = 121
  • F11 = 122
  • F12 = 123
  • F13 = 124
  • F14 = 125
  • F15 = 126
  • F16 = 127
  • F17 = 128
  • F18 = 129
  • F19 = 130
  • F20 = 131
  • F21 = 132
  • F22 = 133
  • F23 = 134
  • F24 = 135
  • NavigationView = 136
  • NavigationMenu = 137
  • NavigationUp = 138
  • NavigationDown = 139
  • NavigationLeft = 140
  • NavigationRight = 141
  • NavigationAccept = 142
  • NavigationCancel = 143
  • NumberKeyLock = 144
  • Scroll = 145
  • LeftShift = 160
  • RightShift = 161
  • LeftControl = 162
  • RightControl = 163
  • LeftMenu = 164
  • RightMenu = 165
  • GoBack = 166
  • GoForward = 167
  • Refresh = 168
  • Stop = 169
  • Search = 170
  • Favorites = 171
  • GoHome = 172
  • GamepadA = 195
  • GamepadB = 196
  • GamepadX = 197
  • GamepadY = 198
  • GamepadRightShoulder = 199
  • GamepadLeftShoulder = 200
  • GamepadLeftTrigger = 201
  • GamepadRightTrigger = 202
  • GamepadDPadUp = 203
  • GamepadDPadDown = 204
  • GamepadDPadLeft = 205
  • GamepadDPadRight = 206
  • GamepadMenu = 207
  • GamepadView = 208
  • GamepadLeftThumbstickButton = 209
  • GamepadRightThumbstickButton = 210
  • GamepadLeftThumbstickUp = 211
  • GamepadLeftThumbstickDown = 212
  • GamepadLeftThumbstickRight = 213
  • GamepadLeftThumbstickLeft = 214
  • GamepadRightThumbstickUp = 215
  • GamepadRightThumbstickDown = 216
  • GamepadRightThumbstickRight = 217
  • GamepadRightThumbstickLeft = 218

VirtualKeyModifiers 双端 ​

命名空间 GameCore.Platform.Windows

csharp
public enum VirtualKeyModifiers

枚举值 ​

  • None = 0u
  • Control = 1u
  • Menu = 2u
  • Shift = 4u
  • Windows = 8u