Class: KeyEvent
Defined in: src/event/eventConst/KeyEvent.ts:7
enum keyboard eventInputSystem
Extends
Constructors
Constructor
new KeyEvent(
eventType?,data?):KeyEvent
Defined in: src/event/CEvent.ts:102
Create a new event, with type and data
Parameters
eventType?
string = null
{any} eventType
data?
any = null
{any} param
Returns
KeyEvent
Inherited from
Properties
target
target:
Object3D
Defined in: src/event/CEvent.ts:13
Event target, it's usually event dispatcher
Inherited from
currentTarget
currentTarget:
CEventListener
Defined in: src/event/CEvent.ts:18
Current event target, it's current bubble object
Inherited from
type
type:
string
Defined in: src/event/CEvent.ts:23
event type, it's registered string of key
Inherited from
data?
optionaldata?:any
Defined in: src/event/CEvent.ts:28
extra data.Used for the transmission process of events, carrying data
Inherited from
param
param:
any
Defined in: src/event/CEvent.ts:34
The param data when event is registered
Inherited from
time
time:
number=0
Defined in: src/event/CEvent.ts:40
the time when event is
Inherited from
delay
delay:
number=0
Defined in: src/event/CEvent.ts:46
the delay time when event is dispatched.
Inherited from
mouseCode
mouseCode:
number=0
Defined in: src/event/CEvent.ts:52
mouse code, see
Mouse Code
Inherited from
ctrlKey
ctrlKey:
boolean
Defined in: src/event/CEvent.ts:57
Is Ctrl key pressed when the event occurs
Inherited from
metaKey
metaKey:
boolean
Defined in: src/event/CEvent.ts:62
Is Meta key pressed when the event occurs
Inherited from
altKey
altKey:
boolean
Defined in: src/event/CEvent.ts:67
Is Alt key pressed when the event occurs
Inherited from
shiftKey
shiftKey:
boolean
Defined in: src/event/CEvent.ts:72
Is Shift key pressed when the event occurs
Inherited from
targetTouches
targetTouches:
TouchData[]
Defined in: src/event/CEvent.ts:77
Collection of finger touch points, which registered
Inherited from
changedTouches
changedTouches:
TouchData[]
Defined in: src/event/CEvent.ts:82
Collection of finger touch points changed
Inherited from
touches
touches:
TouchData[]
Defined in: src/event/CEvent.ts:87
Collection of finger touch points
Inherited from
view
view:
View3D
Defined in: src/event/CEvent.ts:94
binded view3D object in event.
Inherited from
KEY_DOWN
staticKEY_DOWN:string='onKeyDown'
Defined in: src/event/eventConst/KeyEvent.ts:15
Constant Definition Key Press Event Identification Event response status: Responds every time the keyboard is pressed. Response event parameters: keyboard key
Platform
Web,Native
KEY_UP
staticKEY_UP:string='onKeyUp'
Defined in: src/event/eventConst/KeyEvent.ts:24
Constant Definition Key up Event Identification Event response status: Responds every time the keyboard is released. Response event parameters: keyboard key
Platform
Web,Native
keyCode
keyCode:
number=0
Defined in: src/event/eventConst/KeyEvent.ts:32
Key code value, enumeration type see KeyCode KeyCode
Default
0Platform
Web,Native
Accessors
isStopImmediatePropagation
Get Signature
get isStopImmediatePropagation():
boolean
Defined in: src/event/CEvent.ts:125
Returns stopImmediatePropagation value
Returns
boolean
Inherited from
CEvent.isStopImmediatePropagation
Methods
stopImmediatePropagation()
stopImmediatePropagation():
void
Defined in: src/event/CEvent.ts:110
Prevent bubbling of all event listeners in subsequent nodes of the current node in the event flow.
Returns
void

