Documentation ¶
Overview ¶
this is a generate file,do not modify it!
this is a generate file,do not modify it!
this is a generate file,do not modify it!
this is a generate file,do not modify it!
this is a generated file,do not modify it!!!
this is a generate file,do not modify it!
this is a generate file,edit implement on this file only!
this is a generate file,do not modify it!
this is a generate file,edit implement on this file only!
Index ¶
- Constants
- Variables
- type KEY
- type KEY_EVENT_TYPE
- type KeyEvent
- func (this *KeyEvent) GetId() (protocol.BINARY_TAG, error)
- func (this *KeyEvent) OnAdd(e lokas.IEntity, r lokas.IRuntime)
- func (this *KeyEvent) OnCreate(r lokas.IRuntime)
- func (this *KeyEvent) OnDestroy(r lokas.IRuntime)
- func (this *KeyEvent) OnRemove(e lokas.IEntity, r lokas.IRuntime)
- func (this *KeyEvent) Serializable() protocol.ISerializable
- type MOUSE_BUTTON
- type MOUSE_EVENT_TYPE
- type MouseEvent
- func (this *MouseEvent) GetId() (protocol.BINARY_TAG, error)
- func (this *MouseEvent) OnAdd(e lokas.IEntity, r lokas.IRuntime)
- func (this *MouseEvent) OnCreate(r lokas.IRuntime)
- func (this *MouseEvent) OnDestroy(r lokas.IRuntime)
- func (this *MouseEvent) OnRemove(e lokas.IEntity, r lokas.IRuntime)
- func (this *MouseEvent) Serializable() protocol.ISerializable
Constants ¶
View Source
const ( TAG_KEY_EVENT protocol.BINARY_TAG = 311 TAG_MOUSE_EVENT protocol.BINARY_TAG = 312 )
Variables ¶
View Source
var ALL_KEY protocol.IEnumCollection = []protocol.IEnum{} /* 180 elements not displayed */
View Source
var ALL_KEY_EVENT_TYPE protocol.IEnumCollection = []protocol.IEnum{KEY_EVENT_TYPE_NULL, KEY_EVENT_TYPE_DOWN, KEY_EVENT_TYPE_UP, KEY_EVENT_TYPE_PRESS}
View Source
var ALL_MOUSE_BUTTON protocol.IEnumCollection = []protocol.IEnum{MOUSE_BUTTON_NULL, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_RIGHT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_EXTRA_1, MOUSE_BUTTON_EXTRA_2}
Functions ¶
This section is empty.
Types ¶
type KEY ¶
const ( KEY_NULL KEY = 0 //0 KEY_LBUTTON KEY = 1 //1 KEY_RBUTTON KEY = 2 //2 KEY_CANCEL KEY = 3 //3 KEY_MBUTTON KEY = 4 //4 KEY_XBUTTON_1 KEY = 5 //5 KEY_XBUTTON_2 KEY = 6 //6 KEY_BACK KEY = 8 //8 KEY_TAB KEY = 9 //9 KEY_LINEFEED KEY = 10 //10 KEY_CLEAR KEY = 12 //12 KEY_RETURN KEY = 13 //13 KEY_SHIFT KEY = 16 //16 KEY_CONTROL KEY = 17 //17 KEY_ALT KEY = 18 //18 KEY_PAUSE KEY = 19 //19 KEY_CAPITAL KEY = 20 //20 KEY_KANA KEY = 21 //21 KEY_HANGUL KEY = 21 //21 KEY_JUNJA KEY = 23 //23 KEY_FINAL KEY = 24 //24 KEY_HANJA KEY = 25 //25 KEY_KANJI KEY = 25 //25 KEY_CONVERT KEY = 28 //28 KEY_NONCONVERT KEY = 29 //29 KEY_ACCEPT KEY = 30 //30 KEY_MODECHANGE KEY = 31 //31 KEY_ESCAPE KEY = 27 //27 KEY_SPACE KEY = 32 //32 KEY_PGUP KEY = 33 //33 KEY_PGDN KEY = 34 //34 KEY_END KEY = 35 //35 KEY_HOME KEY = 36 //36 KEY_LEFT KEY = 37 //37 KEY_UP KEY = 38 //38 KEY_RIGHT KEY = 39 //39 KEY_DOWN KEY = 40 //40 KEY_SELECT KEY = 41 //41 KEY_PRINT KEY = 42 //42 KEY_EXECUTE KEY = 43 //43 KEY_SNAPSHOT KEY = 44 //44 KEY_INSERT KEY = 45 //45 KEY_DELETE KEY = 46 //46 KEY_HELP KEY = 47 //47 KEY_N_0 KEY = 48 //48 KEY_N_1 KEY = 49 //49 KEY_N_2 KEY = 50 //50 KEY_N_3 KEY = 51 //51 KEY_N_4 KEY = 52 //52 KEY_N_5 KEY = 53 //53 KEY_N_6 KEY = 54 //54 KEY_N_7 KEY = 55 //55 KEY_N_8 KEY = 56 //56 KEY_N_9 KEY = 57 //57 KEY_A KEY = 65 //65 KEY_B KEY = 66 //66 KEY_C KEY = 67 //67 KEY_D KEY = 68 //68 KEY_E KEY = 69 //69 KEY_F KEY = 70 //70 KEY_G KEY = 71 //71 KEY_H KEY = 72 //72 KEY_I KEY = 73 //73 KEY_J KEY = 74 //74 KEY_K KEY = 75 //75 KEY_L KEY = 76 //76 KEY_M KEY = 77 //77 KEY_N KEY = 78 //78 KEY_O KEY = 79 //79 KEY_P KEY = 80 //80 KEY_Q KEY = 81 //81 KEY_R KEY = 82 //82 KEY_S KEY = 83 //83 KEY_T KEY = 84 //84 KEY_U KEY = 85 //85 KEY_V KEY = 86 //86 KEY_W KEY = 87 //87 KEY_X KEY = 88 //88 KEY_Y KEY = 89 //89 KEY_Z KEY = 90 //90 KEY_LWIN KEY = 91 //91 KEY_RWIN KEY = 92 //92 KEY_APPS KEY = 93 //93 KEY_SLEEP KEY = 95 //95 KEY_NUMPAD_0 KEY = 96 //96 KEY_NUMPAD_1 KEY = 97 //97 KEY_NUMPAD_2 KEY = 98 //98 KEY_NUMPAD_3 KEY = 99 //99 KEY_NUMPAD_4 KEY = 100 //100 KEY_NUMPAD_5 KEY = 101 //101 KEY_NUMPAD_6 KEY = 102 //102 KEY_NUMPAD_7 KEY = 103 //103 KEY_NUMPAD_8 KEY = 104 //104 KEY_NUMPAD_9 KEY = 105 //105 KEY_MULTIPLY KEY = 106 //106 KEY_ADD KEY = 107 //107 KEY_SEPARATOR KEY = 108 //108 KEY_SUBTRACT KEY = 109 //109 KEY_DECIMAL KEY = 110 //110 KEY_DIVIDEKEY KEY = 111 //111 KEY_F_1 KEY = 112 //112 KEY_F_2 KEY = 113 //113 KEY_F_3 KEY = 114 //114 KEY_F_4 KEY = 115 //115 KEY_F_5 KEY = 116 //116 KEY_F_6 KEY = 117 //117 KEY_F_7 KEY = 118 //118 KEY_F_8 KEY = 119 //119 KEY_F_9 KEY = 120 //120 KEY_F_10 KEY = 121 //121 KEY_F_11 KEY = 122 //122 KEY_F_12 KEY = 123 //123 KEY_F_13 KEY = 124 //124 KEY_F_14 KEY = 125 //125 KEY_F_15 KEY = 126 //126 KEY_F_16 KEY = 127 //127 KEY_F_17 KEY = 128 //128 KEY_F_18 KEY = 129 //129 KEY_F_19 KEY = 130 //130 KEY_F_20 KEY = 131 //131 KEY_F_21 KEY = 132 //132 KEY_F_22 KEY = 133 //133 KEY_F_23 KEY = 134 //134 KEY_F_24 KEY = 135 //135 KEY_CAMERA KEY = 136 //136 KEY_HARDWAREBACK KEY = 137 //137 KEY_NUMLOCK KEY = 144 //144 KEY_SCROLL KEY = 145 //145 KEY_LSHIFT KEY = 160 //160 KEY_RSHIFT KEY = 161 //161 KEY_LCONTROL KEY = 162 //162 KEY_RCONTROL KEY = 163 //163 KEY_LALT KEY = 164 //164 KEY_RALT KEY = 165 //165 KEY_BROWSERBACK KEY = 166 //166 KEY_BROWSERFORWARDKEY KEY = 167 //167 KEY_BROWSERREFRESHKEY KEY = 168 //168 KEY_BROWSERSTOP KEY = 169 //169 KEY_BROWSERSEARCH KEY = 170 //170 KEY_BROWSERFAVORITES KEY = 171 //171 KEY_BROWSERHOME KEY = 172 //172 KEY_VOLUMEMUTE KEY = 173 //173 KEY_VOLUMEDOWN KEY = 174 //174 KEY_VOLUMEUP KEY = 175 //175 KEY_MEDIANEXTTRACKKEY KEY = 176 //176 KEY_MEDIAPREVTRACKKEY KEY = 177 //177 KEY_MEDIASTOP KEY = 178 //178 KEY_MEDIAPLAYPAUSEKEY KEY = 179 //179 KEY_LAUNCHMAIL KEY = 180 //180 KEY_LAUNCHMEDIASELECT KEY = 181 //181 KEY_LAUNCHAPP_1 KEY = 182 //182 KEY_LAUNCHAPP_2 KEY = 183 //183 KEY_SEMICOLONKEY KEY = 186 //186 KEY_EQUAL KEY = 187 //187 KEY_COMMA KEY = 188 //188 KEY_MINUS KEY = 189 //189 KEY_PERIOD KEY = 190 //190 KEY_SLASH KEY = 191 //191 KEY_TILDE KEY = 192 //192 KEY_LEFTBRACKET KEY = 219 //219 KEY_BACKSLASHKEY KEY = 220 //220 KEY_RIGHTBRACKET KEY = 221 //221 KEY_QUOTE KEY = 222 //222 KEY_PARA KEY = 223 //223 KEY_OEM_102 KEY = 226 //226 KEY_ICOHELPKEY KEY = 227 //227 KEY_ICO_00 KEY = 228 //228 KEY_PROCESSKEY KEY = 229 //229 KEY_ICOCLEAR KEY = 230 //230 KEY_PACKET KEY = 231 //231 KEY_ATTN KEY = 246 //246 KEY_CRSEL KEY = 247 //247 KEY_EXSEL KEY = 248 //248 KEY_EREOF KEY = 249 //249 KEY_PLAY KEY = 250 //250 KEY_ZOOM KEY = 251 //251 KEY_NONAME KEY = 252 //252 KEY_PA_1 KEY = 253 //253 KEY_OEMCLEAR KEY = 254 //254 KEY_NONE KEY = 255 //255 )
type KEY_EVENT_TYPE ¶
const ( KEY_EVENT_TYPE_NULL KEY_EVENT_TYPE = 0 //0 KEY_EVENT_TYPE_DOWN KEY_EVENT_TYPE = 1 //1 KEY_EVENT_TYPE_UP KEY_EVENT_TYPE = 2 //2 KEY_EVENT_TYPE_PRESS KEY_EVENT_TYPE = 3 //3 )
func TO_KEY_EVENT_TYPE ¶
func TO_KEY_EVENT_TYPE(s string) KEY_EVENT_TYPE
func (KEY_EVENT_TYPE) Enum ¶
func (this KEY_EVENT_TYPE) Enum() protocol.Enum
func (KEY_EVENT_TYPE) ToString ¶
func (this KEY_EVENT_TYPE) ToString() string
type KeyEvent ¶
type KeyEvent struct { ecs.Component `json:"-" bson:"-"` Code KEY Event KEY_EVENT_TYPE }
func NewKeyEvent ¶
func NewKeyEvent() *KeyEvent
func (*KeyEvent) Serializable ¶
func (this *KeyEvent) Serializable() protocol.ISerializable
type MOUSE_BUTTON ¶
const ( MOUSE_BUTTON_NULL MOUSE_BUTTON = 0 //0 MOUSE_BUTTON_LEFT MOUSE_BUTTON = 1 //1 MOUSE_BUTTON_RIGHT MOUSE_BUTTON = 2 //2 MOUSE_BUTTON_MIDDLE MOUSE_BUTTON = 3 //3 MOUSE_BUTTON_EXTRA_1 MOUSE_BUTTON = 4 //4 MOUSE_BUTTON_EXTRA_2 MOUSE_BUTTON = 5 //5 )
func TO_MOUSE_BUTTON ¶
func TO_MOUSE_BUTTON(s string) MOUSE_BUTTON
func (MOUSE_BUTTON) Enum ¶
func (this MOUSE_BUTTON) Enum() protocol.Enum
func (MOUSE_BUTTON) ToString ¶
func (this MOUSE_BUTTON) ToString() string
type MOUSE_EVENT_TYPE ¶
const ( MOUSE_EVENT_TYPE_NULL MOUSE_EVENT_TYPE = 0 //0 MOUSE_EVENT_TYPE_DOWN MOUSE_EVENT_TYPE = 1 //1 MOUSE_EVENT_TYPE_UP MOUSE_EVENT_TYPE = 2 //2 MOUSE_EVENT_TYPE_PRESS MOUSE_EVENT_TYPE = 3 //3 MOUSE_EVENT_TYPE_SCROLL MOUSE_EVENT_TYPE = 4 //4 MOUSE_EVENT_TYPE_MOVE MOUSE_EVENT_TYPE = 5 //5 MOUSE_EVENT_TYPE_ENTER MOUSE_EVENT_TYPE = 6 //6 MOUSE_EVENT_TYPE_LEAVE MOUSE_EVENT_TYPE = 7 //7 MOUSE_EVENT_TYPE_CANCEL MOUSE_EVENT_TYPE = 8 //8 )
func TO_MOUSE_EVENT_TYPE ¶
func TO_MOUSE_EVENT_TYPE(s string) MOUSE_EVENT_TYPE
func (MOUSE_EVENT_TYPE) Enum ¶
func (this MOUSE_EVENT_TYPE) Enum() protocol.Enum
func (MOUSE_EVENT_TYPE) ToString ¶
func (this MOUSE_EVENT_TYPE) ToString() string
type MouseEvent ¶
type MouseEvent struct { ecs.Component `json:"-" bson:"-"` Event MOUSE_EVENT_TYPE Button MOUSE_BUTTON X int32 Y int32 Num int64 }
func NewMouseEvent ¶
func NewMouseEvent() *MouseEvent
func (*MouseEvent) GetId ¶
func (this *MouseEvent) GetId() (protocol.BINARY_TAG, error)
func (*MouseEvent) OnAdd ¶
func (this *MouseEvent) OnAdd(e lokas.IEntity, r lokas.IRuntime)
func (*MouseEvent) OnCreate ¶
func (this *MouseEvent) OnCreate(r lokas.IRuntime)
func (*MouseEvent) OnDestroy ¶
func (this *MouseEvent) OnDestroy(r lokas.IRuntime)
func (*MouseEvent) OnRemove ¶
func (this *MouseEvent) OnRemove(e lokas.IEntity, r lokas.IRuntime)
func (*MouseEvent) Serializable ¶
func (this *MouseEvent) Serializable() protocol.ISerializable
Click to show internal directories.
Click to hide internal directories.