Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
SmallEvent.cs
浏览该文件的文档.
1using System.Runtime.InteropServices;
2
3namespace Engine.Browser {
4 [StructLayout(LayoutKind.Explicit, Size = 4)]
5 public struct SmallEvent {
6 [FieldOffset(0)] public InputEventType Type;
7 [FieldOffset(1)] public byte Param; // KeyCode / Button / FingerId
8 [FieldOffset(2)] public ushort Payload; // Char / GamepadIndex / Modifier
9 }
10}