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 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
- type SCAN_CODE
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{} /* 176 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}
View Source
var ALL_MOUSE_EVENT_TYPE protocol.IEnumCollection = []protocol.IEnum{MOUSE_EVENT_TYPE_NULL, MOUSE_EVENT_TYPE_DOWN, MOUSE_EVENT_TYPE_UP, MOUSE_EVENT_TYPE_PRESS, MOUSE_EVENT_TYPE_SCROLL_UP, MOUSE_EVENT_TYPE_SCROLL_DOWN, MOUSE_EVENT_TYPE_MOVE, MOUSE_EVENT_TYPE_ENTER, MOUSE_EVENT_TYPE_LEAVE, MOUSE_EVENT_TYPE_CANCEL, MOUSE_EVENT_TYPE_MOVE_RELATIVE}
View Source
var ALL_SCAN_CODE protocol.IEnumCollection = []protocol.IEnum{} /* 101 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type KEY ¶
const ( KEY_NULL KEY = 0 //NULL KEY_CANCEL KEY = 3 //CANCEL KEY_MBUTTON KEY = 4 //MBUTTON KEY_XBUTTON_1 KEY = 5 //XBUTTON1 KEY_XBUTTON_2 KEY = 6 //XBUTTON2 KEY_BACKSPACE KEY = 8 //BACKSPACE KEY_TAB KEY = 9 //TAB KEY_LINEFEED KEY = 10 //LINEFEED KEY_CLEAR KEY = 12 //CLEAR KEY_ENTER KEY = 13 //ENTER KEY_SHIFT KEY = 16 //SHIFT KEY_CONTROL KEY = 17 //CONTROL KEY_ALT KEY = 18 //ALT KEY_PAUSE KEY = 19 //PAUSE KEY_CAPSLOCK KEY = 20 //CAPSLOCK KEY_HANGUL KEY = 21 //HANGUL KEY_JUNJA KEY = 23 //JUNJA KEY_FINAL KEY = 24 //FINAL KEY_KANJI KEY = 25 //KANJI KEY_CONVERT KEY = 28 //CONVERT KEY_NONCONVERT KEY = 29 //NONCONVERT KEY_ACCEPT KEY = 30 //ACCEPT KEY_MODECHANGE KEY = 31 //MODECHANGE KEY_ESCAPE KEY = 27 //ESCAPE KEY_SPACE KEY = 32 //SPACE KEY_PGUP KEY = 33 //PGUP KEY_PGDN KEY = 34 //PGDN KEY_END KEY = 35 //END KEY_HOME KEY = 36 //HOME KEY_LEFT KEY = 37 //LEFT KEY_UP KEY = 38 //UP KEY_RIGHT KEY = 39 //RIGHT KEY_DOWN KEY = 40 //DOWN KEY_SELECT KEY = 41 //SELECT KEY_PRINT KEY = 42 //PRINT KEY_EXECUTE KEY = 43 //EXECUTE KEY_PRINTSCREEN KEY = 44 //PRINTSCREEN KEY_INSERT KEY = 45 //INSERT KEY_DELETE KEY = 46 //DELETE KEY_HELP KEY = 47 //HELP KEY_N_0 KEY = 48 //0 KEY_N_1 KEY = 49 //1 KEY_N_2 KEY = 50 //2 KEY_N_3 KEY = 51 //3 KEY_N_4 KEY = 52 //4 KEY_N_5 KEY = 53 //5 KEY_N_6 KEY = 54 //6 KEY_N_7 KEY = 55 //7 KEY_N_8 KEY = 56 //8 KEY_N_9 KEY = 57 //9 KEY_A KEY = 65 //A KEY_B KEY = 66 //B KEY_C KEY = 67 //C KEY_D KEY = 68 //D KEY_E KEY = 69 //E KEY_F KEY = 70 //F KEY_G KEY = 71 //G KEY_H KEY = 72 //H KEY_I KEY = 73 //I KEY_J KEY = 74 //J KEY_K KEY = 75 //K KEY_L KEY = 76 //L KEY_M KEY = 77 //M KEY_N KEY = 78 //N KEY_O KEY = 79 //O KEY_P KEY = 80 //P KEY_Q KEY = 81 //Q KEY_R KEY = 82 //R KEY_S KEY = 83 //S KEY_T KEY = 84 //T KEY_U KEY = 85 //U KEY_V KEY = 86 //V KEY_W KEY = 87 //W KEY_X KEY = 88 //X KEY_Y KEY = 89 //Y KEY_Z KEY = 90 //Z KEY_LWIN KEY = 91 //LWIN KEY_RWIN KEY = 92 //RWIN KEY_MENU KEY = 93 //MENU KEY_SLEEP KEY = 95 //SLEEP KEY_KP_0 KEY = 96 //KP_0 KEY_KP_1 KEY = 97 //KP_1 KEY_KP_2 KEY = 98 //KP_2 KEY_KP_3 KEY = 99 //KP_3 KEY_KP_4 KEY = 100 //KP_4 KEY_KP_5 KEY = 101 //KP_5 KEY_KP_6 KEY = 102 //KP_6 KEY_KP_7 KEY = 103 //KP_7 KEY_KP_8 KEY = 104 //KP_8 KEY_KP_9 KEY = 105 //KP_9 KEY_KP_MULTIPLY KEY = 106 //KP_MULTIPLY KEY_KP_PLUS KEY = 107 //KP_PLUS KEY_SEPARATOR KEY = 108 //SEPARATOR KEY_KP_MINUS KEY = 109 //KP_MINUS KEY_KP_DECIMAL KEY = 110 //KP_DECIMAL KEY_KP_DIVIDE KEY = 111 //KP_DIVIDE KEY_F_1 KEY = 112 //F1 KEY_F_2 KEY = 113 //F2 KEY_F_3 KEY = 114 //F3 KEY_F_4 KEY = 115 //F4 KEY_F_5 KEY = 116 //F5 KEY_F_6 KEY = 117 //F6 KEY_F_7 KEY = 118 //F7 KEY_F_8 KEY = 119 //F8 KEY_F_9 KEY = 120 //F9 KEY_F_10 KEY = 121 //F10 KEY_F_11 KEY = 122 //F11 KEY_F_12 KEY = 123 //F12 KEY_F_13 KEY = 124 //F13 KEY_F_14 KEY = 125 //F14 KEY_F_15 KEY = 126 //F15 KEY_F_16 KEY = 127 //F16 KEY_F_17 KEY = 128 //F17 KEY_F_18 KEY = 129 //F18 KEY_F_19 KEY = 130 //F19 KEY_F_20 KEY = 131 //F20 KEY_F_21 KEY = 132 //F21 KEY_F_22 KEY = 133 //F22 KEY_F_23 KEY = 134 //F23 KEY_F_24 KEY = 135 //F24 KEY_CAMERA KEY = 136 //CAMERA KEY_HARDWAREBACK KEY = 137 //HARDWAREBACK KEY_NUMLOCK KEY = 144 //NUMLOCK KEY_SCROLL_LOCK KEY = 145 //SCROLL_LOCK KEY_LSHIFT KEY = 160 //LSHIFT KEY_RSHIFT KEY = 161 //RSHIFT KEY_LCTRL KEY = 162 //LCTRL KEY_RCTRL KEY = 163 //RCTRL KEY_LALT KEY = 164 //LALT KEY_RALT KEY = 165 //RALT KEY_BROWSERBACK KEY = 166 //BROWSERBACK KEY_BROWSERFORWARD KEY = 167 //BROWSERFORWARD KEY_BROWSERREFRESH KEY = 168 //BROWSERREFRESH KEY_BROWSERSTOP KEY = 169 //BROWSERSTOP KEY_BROWSERSEARCH KEY = 170 //BROWSERSEARCH KEY_BROWSERFAVORITES KEY = 171 //BROWSERFAVORITES KEY_BROWSERHOME KEY = 172 //BROWSERHOME KEY_VOLUMEMUTE KEY = 173 //VOLUMEMUTE KEY_VOLUMEDOWN KEY = 174 //VOLUMEDOWN KEY_VOLUMEUP KEY = 175 //VOLUMEUP KEY_NEXTTRACK KEY = 176 //NEXTTRACK KEY_PREVTRACK KEY = 177 //PREVTRACK KEY_STOP KEY = 178 //STOP KEY_PLAYPAUSE KEY = 179 //PLAYPAUSE KEY_LAUNCHMAIL KEY = 180 //LAUNCHMAIL KEY_LAUNCHMEDIASELECT KEY = 181 //LAUNCHMEDIASELECT KEY_LAUNCHAPP_1 KEY = 182 //LAUNCHAPP1 KEY_LAUNCHAPP_2 KEY = 183 //LAUNCHAPP2 KEY_SEMICOLON KEY = 186 //SEMICOLON KEY_EQUAL KEY = 187 //EQUAL KEY_COMMA KEY = 188 //COMMA KEY_MINUS KEY = 189 //MINUS KEY_PERIOD KEY = 190 //PERIOD KEY_SLASH KEY = 191 //SLASH KEY_TILDE KEY = 192 //TILDE KEY_LBRACE KEY = 219 //LBRACE KEY_BACKSLASH KEY = 220 //BACKSLASH KEY_RBRACE KEY = 221 //RBRACE KEY_QUOTE KEY = 222 //QUOTE KEY_PARA KEY = 223 //PARA KEY_OEM_102 KEY = 226 //OEM102 KEY_ICOHELPKEY KEY = 227 //ICOHELPKEY KEY_ICO_00 KEY = 228 //ICO00 KEY_PROCESSKEY KEY = 229 //PROCESSKEY KEY_ICOCLEAR KEY = 230 //ICOCLEAR KEY_PACKET KEY = 231 //PACKET KEY_ATTN KEY = 246 //ATTN KEY_CRSEL KEY = 247 //CRSEL KEY_EXSEL KEY = 248 //EXSEL KEY_EREOF KEY = 249 //EREOF KEY_PLAY KEY = 250 //PLAY KEY_ZOOM KEY = 251 //ZOOM KEY_NONAME KEY = 252 //NONAME KEY_PA_1 KEY = 253 //PA1 KEY_OEMCLEAR KEY = 254 //OEMCLEAR KEY_NONE KEY = 255 //NONE )
type KEY_EVENT_TYPE ¶
const ( KEY_EVENT_TYPE_NULL KEY_EVENT_TYPE = 0 //NULL KEY_EVENT_TYPE_DOWN KEY_EVENT_TYPE = 1 //DOWN KEY_EVENT_TYPE_UP KEY_EVENT_TYPE = 2 //UP KEY_EVENT_TYPE_PRESS KEY_EVENT_TYPE = 3 //PRESS )
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 //NULL MOUSE_BUTTON_LEFT MOUSE_BUTTON = 1 //LEFT MOUSE_BUTTON_RIGHT MOUSE_BUTTON = 2 //RIGHT MOUSE_BUTTON_MIDDLE MOUSE_BUTTON = 3 //MIDDLE MOUSE_BUTTON_EXTRA_1 MOUSE_BUTTON = 4 //EXTRA1 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 //NULL MOUSE_EVENT_TYPE_DOWN MOUSE_EVENT_TYPE = 1 //DOWN MOUSE_EVENT_TYPE_UP MOUSE_EVENT_TYPE = 2 //UP MOUSE_EVENT_TYPE_PRESS MOUSE_EVENT_TYPE = 3 //PRESS MOUSE_EVENT_TYPE_SCROLL_UP MOUSE_EVENT_TYPE = 4 //SCROLL_UP MOUSE_EVENT_TYPE_SCROLL_DOWN MOUSE_EVENT_TYPE = 5 //SCROLL_DOWN MOUSE_EVENT_TYPE_MOVE MOUSE_EVENT_TYPE = 6 //MOVE MOUSE_EVENT_TYPE_ENTER MOUSE_EVENT_TYPE = 7 //ENTER MOUSE_EVENT_TYPE_LEAVE MOUSE_EVENT_TYPE = 8 //LEAVE MOUSE_EVENT_TYPE_CANCEL MOUSE_EVENT_TYPE = 9 //CANCEL MOUSE_EVENT_TYPE_MOVE_RELATIVE MOUSE_EVENT_TYPE = 10 //MOVE_RELATIVE )
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
type SCAN_CODE ¶ added in v0.1.40
const ( SCAN_CODE_ESCAPE SCAN_CODE = 1 //ESCAPE SCAN_CODE_N_1 SCAN_CODE = 2 //1 SCAN_CODE_N_2 SCAN_CODE = 3 //2 SCAN_CODE_N_3 SCAN_CODE = 4 //3 SCAN_CODE_N_4 SCAN_CODE = 5 //4 SCAN_CODE_N_5 SCAN_CODE = 6 //5 SCAN_CODE_N_6 SCAN_CODE = 7 //6 SCAN_CODE_N_7 SCAN_CODE = 8 //7 SCAN_CODE_N_8 SCAN_CODE = 9 //8 SCAN_CODE_N_9 SCAN_CODE = 10 //9 SCAN_CODE_N_0 SCAN_CODE = 11 //0 SCAN_CODE_MINUS SCAN_CODE = 12 //MINUS SCAN_CODE_EQUAL SCAN_CODE = 13 //EQUAL SCAN_CODE_BACKSPACE SCAN_CODE = 14 //BACKSPACE SCAN_CODE_TAB SCAN_CODE = 15 //TAB SCAN_CODE_Q SCAN_CODE = 16 //Q SCAN_CODE_W SCAN_CODE = 17 //W SCAN_CODE_E SCAN_CODE = 18 //E SCAN_CODE_R SCAN_CODE = 19 //R SCAN_CODE_T SCAN_CODE = 20 //T SCAN_CODE_Y SCAN_CODE = 21 //Y SCAN_CODE_U SCAN_CODE = 22 //U SCAN_CODE_I SCAN_CODE = 23 //I SCAN_CODE_O SCAN_CODE = 24 //O SCAN_CODE_P SCAN_CODE = 25 //P SCAN_CODE_LBRACE SCAN_CODE = 26 //LBRACE SCAN_CODE_RBRACE SCAN_CODE = 27 //RBRACE SCAN_CODE_ENTER SCAN_CODE = 28 //ENTER SCAN_CODE_LCTRL SCAN_CODE = 29 //LCTRL SCAN_CODE_A SCAN_CODE = 30 //A SCAN_CODE_S SCAN_CODE = 31 //S SCAN_CODE_D SCAN_CODE = 32 //D SCAN_CODE_F SCAN_CODE = 33 //F SCAN_CODE_G SCAN_CODE = 34 //G SCAN_CODE_H SCAN_CODE = 35 //H SCAN_CODE_J SCAN_CODE = 36 //J SCAN_CODE_K SCAN_CODE = 37 //K SCAN_CODE_L SCAN_CODE = 38 //L SCAN_CODE_SEMICOLON SCAN_CODE = 39 //SEMICOLON SCAN_CODE_QUOTE SCAN_CODE = 40 //QUOTE SCAN_CODE_TILDE SCAN_CODE = 41 //TILDE SCAN_CODE_LSHIFT SCAN_CODE = 42 //LSHIFT SCAN_CODE_BACKSLASH SCAN_CODE = 43 //BACKSLASH SCAN_CODE_Z SCAN_CODE = 44 //Z SCAN_CODE_X SCAN_CODE = 45 //X SCAN_CODE_C SCAN_CODE = 46 //C SCAN_CODE_V SCAN_CODE = 47 //V SCAN_CODE_B SCAN_CODE = 48 //B SCAN_CODE_N SCAN_CODE = 49 //N SCAN_CODE_M SCAN_CODE = 50 //M SCAN_CODE_COMMA SCAN_CODE = 51 //COMMA SCAN_CODE_PERIOD SCAN_CODE = 52 //PERIOD SCAN_CODE_SLASH SCAN_CODE = 53 //SLASH SCAN_CODE_RSHIFT SCAN_CODE = 54 //RSHIFT SCAN_CODE_KP_MULTIPLY SCAN_CODE = 55 //KP_MULTIPLY SCAN_CODE_LALT SCAN_CODE = 56 //LALT SCAN_CODE_SPACE SCAN_CODE = 57 //SPACE SCAN_CODE_CAPSLOCK SCAN_CODE = 58 //CAPSLOCK SCAN_CODE_F_1 SCAN_CODE = 59 //F1 SCAN_CODE_F_2 SCAN_CODE = 60 //F2 SCAN_CODE_F_3 SCAN_CODE = 61 //F3 SCAN_CODE_F_4 SCAN_CODE = 62 //F4 SCAN_CODE_F_5 SCAN_CODE = 63 //F5 SCAN_CODE_F_6 SCAN_CODE = 64 //F6 SCAN_CODE_F_7 SCAN_CODE = 65 //F7 SCAN_CODE_F_8 SCAN_CODE = 66 //F8 SCAN_CODE_F_9 SCAN_CODE = 67 //F9 SCAN_CODE_F_10 SCAN_CODE = 68 //F10 SCAN_CODE_NUMLOCK SCAN_CODE = 69 //NUMLOCK SCAN_CODE_SCROLL_LOCK SCAN_CODE = 70 //SCROLL_LOCK SCAN_CODE_KP_7 SCAN_CODE = 71 //KP_7 SCAN_CODE_KP_8 SCAN_CODE = 72 //KP_8 SCAN_CODE_KP_9 SCAN_CODE = 73 //KP_9 SCAN_CODE_KP_MINUS SCAN_CODE = 74 //KP_MINUS SCAN_CODE_KP_4 SCAN_CODE = 75 //KP_4 SCAN_CODE_KP_5 SCAN_CODE = 76 //KP_5 SCAN_CODE_KP_6 SCAN_CODE = 77 //KP_6 SCAN_CODE_KP_PLUS SCAN_CODE = 78 //KP_PLUS SCAN_CODE_KP_1 SCAN_CODE = 79 //KP_1 SCAN_CODE_KP_2 SCAN_CODE = 80 //KP_2 SCAN_CODE_KP_3 SCAN_CODE = 81 //KP_3 SCAN_CODE_KP_0 SCAN_CODE = 82 //KP_0 SCAN_CODE_KP_DECIMAL SCAN_CODE = 83 //KP_DECIMAL SCAN_CODE_SNAPSHOT SCAN_CODE = 84 //SNAPSHOT SCAN_CODE_OEM_102 SCAN_CODE = 86 //OEM102 SCAN_CODE_F_11 SCAN_CODE = 87 //F11 SCAN_CODE_F_12 SCAN_CODE = 88 //F12 SCAN_CODE_CLEAR SCAN_CODE = 89 //CLEAR SCAN_CODE_HELP SCAN_CODE = 99 //HELP SCAN_CODE_F_13 SCAN_CODE = 100 //F13 SCAN_CODE_F_14 SCAN_CODE = 101 //F14 SCAN_CODE_F_15 SCAN_CODE = 102 //F15 SCAN_CODE_F_16 SCAN_CODE = 103 //F16 SCAN_CODE_F_17 SCAN_CODE = 104 //F17 SCAN_CODE_F_18 SCAN_CODE = 105 //F18 SCAN_CODE_F_19 SCAN_CODE = 106 //F19 SCAN_CODE_F_20 SCAN_CODE = 107 //F20 SCAN_CODE_F_21 SCAN_CODE = 108 //F21 SCAN_CODE_F_22 SCAN_CODE = 109 //F22 SCAN_CODE_F_23 SCAN_CODE = 110 //F23 SCAN_CODE_F_24 SCAN_CODE = 118 //F24 )
func TO_SCAN_CODE ¶ added in v0.1.40
Click to show internal directories.
Click to hide internal directories.