Properties
Input
Input: { closestObject: (() => InteractiveObject); enabled: (() => boolean); enabledRef: (() => Ref<boolean>); getKeyDown: ((keyCode) => boolean); getKeyPressed: ((keyCode) => boolean); getKeyUp: ((keyCode) => boolean); isDragging: (() => boolean); isLeftButtonDown: (() => boolean); isLeftButtonPressed: (() => boolean); isLeftButtonUp: (() => boolean); isMidButtonDown: (() => boolean); isMidButtonPressed: (() => boolean); isMidButtonUp: (() => boolean); isMoving: (() => boolean); isRightButtonDown: (() => boolean); isRightButtonPressed: (() => boolean); isRightButtonUp: (() => boolean); movementX: (() => number); movementY: (() => number); setEnable: ((b) => {}); x: (() => number); y: (() => number); } Type declaration
enabled: (() => boolean)
- (): boolean
Returns boolean
enabledRef: (() => Ref<boolean>)
- (): Ref<boolean>
Returns Ref<boolean>
getKeyDown: ((keyCode) => boolean)
- (keyCode): boolean
Returns boolean
getKeyPressed: ((keyCode) => boolean)
- (keyCode): boolean
Returns boolean
getKeyUp: ((keyCode) => boolean)
- (keyCode): boolean
Returns boolean
isDragging: (() => boolean)
- (): boolean
Returns boolean
isLeftButtonDown: (() => boolean)
- (): boolean
Returns boolean
isLeftButtonPressed: (() => boolean)
- (): boolean
Returns boolean
isLeftButtonUp: (() => boolean)
- (): boolean
Returns boolean
isMidButtonDown: (() => boolean)
- (): boolean
Returns boolean
isMidButtonPressed: (() => boolean)
- (): boolean
Returns boolean
isMidButtonUp: (() => boolean)
- (): boolean
Returns boolean
isMoving: (() => boolean)
- (): boolean
Returns boolean
isRightButtonDown: (() => boolean)
- (): boolean
Returns boolean
isRightButtonPressed: (() => boolean)
- (): boolean
Returns boolean
isRightButtonUp: (() => boolean)
- (): boolean
Returns boolean
movementX: (() => number)
movementY: (() => number)
setEnable: ((b) => {})
x: (() => number)
y: (() => number)
addPointerEventsObject
addPointerEventsObject: ((entity) => {})
removePointerEventsObject
removePointerEventsObject: ((entity) => {})
setMenu
setMenu: ((menu?, key?) => void)
Type declaration
Parameters
Optional
menu: ((event, object?) => ContextMenu)
Optional
key: string
Returns void
当前离鼠标最近的物体实体