API Reference › Globals › InputManager
# Class: InputManager
# Hierarchy
-
↳ InputManager
# Implements
- Context
- EventListenerObject
# Index
# Constructors
# Properties
# Methods
- addEventListener
- addEvents
- disableEvents
- dispatchEvent
- enableDragIn
- enableEvents
- handleEvent
- onElementHit
- removeEventListener
- removeEvents
- setDragEnabled
- updateSize
# Constructors
# constructor
+ new InputManager(creator
: string): InputManager
Defined in packages/common-core/src/input/input-manager.ts:97
Parameters:
Name | Type |
---|---|
creator | string |
Returns: InputManager
# Properties
# creator
• creator: string
_Implementation of Context.creator_
Defined in packages/common-core/src/input/input-manager.ts:67
# Methods
# addEventListener
▸ addEventListener(eventName
: number, callback
: ListenerFunction‹InputEvent›, scope
: any): void
Inherited from EventDispatcher.addEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:29
Parameters:
Name | Type |
---|---|
eventName | number |
callback | ListenerFunction‹InputEvent› |
scope | any |
Returns: void
# addEvents
▸ addEvents(element
: HTMLElement): void
Defined in packages/common-core/src/input/input-manager.ts:169
Parameters:
Name | Type |
---|---|
element | HTMLElement |
Returns: void
# disableEvents
▸ disableEvents(): void
Inherited from EventDispatcher.disableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:67
Returns: void
# dispatchEvent
▸ dispatchEvent(eventName
: number, arg?
: InputEvent): void
Inherited from EventDispatcher.dispatchEvent
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:33
Parameters:
Name | Type |
---|---|
eventName | number |
arg? | InputEvent |
Returns: void
# enableDragIn
▸ enableDragIn(dragEvent?
: DragEvent): void
Defined in packages/common-core/src/input/input-manager.ts:107
Parameters:
Name | Type |
---|---|
dragEvent? | DragEvent |
Returns: void
# enableEvents
▸ enableEvents(): void
Inherited from EventDispatcher.enableEvents
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:63
Returns: void
# handleEvent
▸ handleEvent(evt
: Event): void
Defined in packages/common-core/src/input/input-manager.ts:343
Parameters:
Name | Type |
---|---|
evt | Event |
Returns: void
# onElementHit
▸ onElementHit(): void
Defined in packages/common-core/src/input/input-manager.ts:500
Returns: void
# removeEventListener
▸ removeEventListener(eventName
: number, fun
: ListenerFunction‹InputEvent›): void
Inherited from EventDispatcher.removeEventListener
Defined in packages/configurator-core/src/utils/event-dispatcher.ts:49
Parameters:
Name | Type |
---|---|
eventName | number |
fun | ListenerFunction‹InputEvent› |
Returns: void
# removeEvents
▸ removeEvents(element
: HTMLElement): void
Defined in packages/common-core/src/input/input-manager.ts:173
Parameters:
Name | Type |
---|---|
element | HTMLElement |
Returns: void
# setDragEnabled
▸ setDragEnabled(enabled
: boolean): void
Defined in packages/common-core/src/input/input-manager.ts:339
Parameters:
Name | Type |
---|---|
enabled | boolean |
Returns: void
# updateSize
▸ updateSize(): void
Defined in packages/common-core/src/input/input-manager.ts:504
Returns: void