主题
GameCore.Platform
PointerButtons 双端
命名空间 GameCore.Platform.SDL
csharp
public enum PointerButtonsDefines 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 = 0Return = 13Escape = 27Backspace = 8Tab = 9Space = 32Exclaim = 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 = 48Number1 = 49Number2 = 50Number3 = 51Number4 = 52Number5 = 53Number6 = 54Number7 = 55Number8 = 56Number9 = 57Colon = 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 = 97B = 98C = 99D = 100E = 101F = 102G = 103H = 104I = 105J = 106K = 107L = 108M = 109N = 110O = 111P = 112Q = 113R = 114S = 115T = 116U = 117V = 118W = 119X = 120Y = 121Z = 122CapitalLock = 1073741881F1 = 1073741882F2 = 1073741883F3 = 1073741884F4 = 1073741885F5 = 1073741886F6 = 1073741887F7 = 1073741888F8 = 1073741889F9 = 1073741890F10 = 1073741891F11 = 1073741892F12 = 1073741893PrintScreen = 1073741894Scroll = 1073741895Pause = 1073741896Insert = 1073741897Home = 1073741898PageUp = 1073741899Delete = 127End = 1073741901PageDown = 1073741902Right = 1073741903Left = 1073741904Down = 1073741905Up = 1073741906NumLockClear = 1073741907NumPadDivide = 1073741908— Num /NumPadMultiply = 1073741909— Num *NumPadMinus = 1073741910— Num -NumPadPlus = 1073741911— Num +NumPadEnter = 1073741912— Num EnterNumPad1 = 1073741913NumPad2 = 1073741914NumPad3 = 1073741915NumPad4 = 1073741916NumPad5 = 1073741917NumPad6 = 1073741918NumPad7 = 1073741919NumPad8 = 1073741920NumPad9 = 1073741921NumPad0 = 1073741922NumPadPeriod = 1073741923— Num .Application = 1073741925Power = 1073741926NumPadEquals = 1073741927— Num =F13 = 1073741928F14 = 1073741929F15 = 1073741930F16 = 1073741931F17 = 1073741932F18 = 1073741933F19 = 1073741934F20 = 1073741935F21 = 1073741936F22 = 1073741937F23 = 1073741938F24 = 1073741939Execute = 1073741940Help = 1073741941Menu = 1073741942Select = 1073741943Stop = 1073741944Again = 1073741945Undo = 1073741946Cut = 1073741947Copy = 1073741948Paste = 1073741949Find = 1073741950Mute = 1073741951VolumeUp = 1073741952VolumeDown = 1073741953NumPadComma = 1073741957— Num ,NumPadEqualsAs400 = 1073741958AltErase = 1073741977SysReq = 1073741978Cancel = 1073741979Clear = 1073741980Prior = 1073741981Return2 = 1073741982Separator = 1073741983Out = 1073741984Oper = 1073741985ClearAgain = 1073741986CursorSelect = 1073741987ExtendSelection = 1073741988NumPad00 = 1073742000NumPad000 = 1073742001ThousandsSeparator = 1073742002DecimalSeparator = 1073742003CurrencyUnit = 1073742004CurrencySubunit = 1073742005NumPadLeftParenthesis = 1073742006NumPadRightParenthesis = 1073742007NumPadLeftBrace = 1073742008NumPadRightBrace = 1073742009NumPadTab = 1073742010NumPadBackspace = 1073742011NumPadA = 1073742012NumPadB = 1073742013NumPadC = 1073742014NumPadD = 1073742015NumPadE = 1073742016NumPadF = 1073742017NumPadXor = 1073742018NumPadPower = 1073742019NumPadPercent = 1073742020NumPadLess = 1073742021NumPadGreater = 1073742022NumPadAmpersand = 1073742023NumPadDoubleAmpersand = 1073742024NumPadVerticalBar = 1073742025NumPadDoubleVerticalBar = 1073742026NumPadColon = 1073742027NumPadHash = 1073742028NumPadSpace = 1073742029NumPadAt = 1073742030NumPadExclamation = 1073742031NumPadMemoryStore = 1073742032NumPadMemoryRecall = 1073742033NumPadMemoryClear = 1073742034NumPadMemoryAdd = 1073742035NumPadMemorySubtract = 1073742036NumPadMemoryMultiply = 1073742037NumPadMemoryDivide = 1073742038NumPadPlusMinus = 1073742039NumPadClear = 1073742040NumPadClearEntry = 1073742041NumPadBinary = 1073742042NumPadOctal = 1073742043NumPadDecimal = 1073742044NumPadHexadecimal = 1073742045LeftCtrl = 1073742048LeftShift = 1073742049LeftAlt = 1073742050LeftWindows = 1073742051RightCtrl = 1073742052RightShift = 1073742053RightAlt = 1073742054RightWindows = 1073742055Mode = 1073742081AudioNext = 1073742082AudioPrevious = 1073742083AudioStop = 1073742084AudioPlay = 1073742085AudioMute = 1073742086MediaSelect = 1073742087WWW = 1073742088Mail = 1073742089Calculator = 1073742090Computer = 1073742091AcSearch = 1073742092AcHome = 1073742093AcBack = 1073742094AcForward = 1073742095AcStop = 1073742096AcRefresh = 1073742097AcBookmarks = 1073742098BrightnessDown = 1073742099BrightnessUp = 1073742100DisplaySwitch = 1073742101KeyboardIlluminationToggle = 1073742102KeyboardIlluminationDown = 1073742103KeyboardIlluminationUp = 1073742104Eject = 1073742105Sleep = 1073742106App1 = 1073742107App2 = 1073742108AudioRewind = 1073742109AudioFastForward = 1073742110SoftLeft = 1073742111SoftRight = 1073742112Call = 1073742113EndCall = 1073742114
VirtualKeyModifiers 双端
命名空间 GameCore.Platform.SDL
csharp
public enum VirtualKeyModifiersDefines 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枚举值
NoneIntBoolFloatVector2Vector3Vector4QuaternionColorStringBufferVoidPtrResourceRefResourceRefListVariantVectorVariantMapIntRectIntVector2PtrMatrix3Matrix3x4Matrix4DoubleStringVectorRectIntVector3Int64CustomHeapCustomStackMaxVarTypes
VirtualKeyModifiers 双端
命名空间 GameCore.Platform.Urho
csharp
public enum VirtualKeyModifiers枚举值
None = 0Shift = 1Ctrl = 2Alt = 4
VirtualKey 双端
命名空间 GameCore.Platform.Windows
csharp
public enum VirtualKey枚举值
None = 0LeftButton = 1RightButton = 2Cancel = 3MiddleButton = 4XButton1 = 5XButton2 = 6Back = 8Tab = 9Clear = 12Enter = 13Shift = 16Control = 17Menu = 18Pause = 19CapitalLock = 20Kana = 21Hangul = 21Junja = 23Final = 24Hanja = 25Kanji = 25Escape = 27Convert = 28NonConvert = 29Accept = 30ModeChange = 31Space = 32PageUp = 33PageDown = 34End = 35Home = 36Left = 37Up = 38Right = 39Down = 40Select = 41Print = 42Execute = 43Snapshot = 44Insert = 45Delete = 46Help = 47Number0 = 48Number1 = 49Number2 = 50Number3 = 51Number4 = 52Number5 = 53Number6 = 54Number7 = 55Number8 = 56Number9 = 57A = 65B = 66C = 67D = 68E = 69F = 70G = 71H = 72I = 73J = 74K = 75L = 76M = 77N = 78O = 79P = 80Q = 81R = 82S = 83T = 84U = 85V = 86W = 87X = 88Y = 89Z = 90LeftWindows = 91RightWindows = 92Application = 93Sleep = 95NumberPad0 = 96NumberPad1 = 97NumberPad2 = 98NumberPad3 = 99NumberPad4 = 100NumberPad5 = 101NumberPad6 = 102NumberPad7 = 103NumberPad8 = 104NumberPad9 = 105Multiply = 106Add = 107Separator = 108Subtract = 109Decimal = 110Divide = 111F1 = 112F2 = 113F3 = 114F4 = 115F5 = 116F6 = 117F7 = 118F8 = 119F9 = 120F10 = 121F11 = 122F12 = 123F13 = 124F14 = 125F15 = 126F16 = 127F17 = 128F18 = 129F19 = 130F20 = 131F21 = 132F22 = 133F23 = 134F24 = 135NavigationView = 136NavigationMenu = 137NavigationUp = 138NavigationDown = 139NavigationLeft = 140NavigationRight = 141NavigationAccept = 142NavigationCancel = 143NumberKeyLock = 144Scroll = 145LeftShift = 160RightShift = 161LeftControl = 162RightControl = 163LeftMenu = 164RightMenu = 165GoBack = 166GoForward = 167Refresh = 168Stop = 169Search = 170Favorites = 171GoHome = 172GamepadA = 195GamepadB = 196GamepadX = 197GamepadY = 198GamepadRightShoulder = 199GamepadLeftShoulder = 200GamepadLeftTrigger = 201GamepadRightTrigger = 202GamepadDPadUp = 203GamepadDPadDown = 204GamepadDPadLeft = 205GamepadDPadRight = 206GamepadMenu = 207GamepadView = 208GamepadLeftThumbstickButton = 209GamepadRightThumbstickButton = 210GamepadLeftThumbstickUp = 211GamepadLeftThumbstickDown = 212GamepadLeftThumbstickRight = 213GamepadLeftThumbstickLeft = 214GamepadRightThumbstickUp = 215GamepadRightThumbstickDown = 216GamepadRightThumbstickRight = 217GamepadRightThumbstickLeft = 218
VirtualKeyModifiers 双端
命名空间 GameCore.Platform.Windows
csharp
public enum VirtualKeyModifiers枚举值
None = 0uControl = 1uMenu = 2uShift = 4uWindows = 8u