new ControllerPanZoom(camera [, options])
Creates a new ControllerPanZoom instance.
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
camera |
Camera | The camera object to control |
|||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Configuration options Properties
|
- Source:
Fires:
- ControllerPanZoom#event:nowheel - Emitted when a wheel event is received but ctrl key is required and not pressed
Extends
Methods
-
<abstract> fingerSingleTap(e)
-
Called for quick mouse press or short finger touch.
Parameters:
Name Type Description e
Event The tap event
- Inherited From:
- Overrides:
- Source:
-
modifierState(e)
-
Gets the modifier state from an event.
Parameters:
Name Type Description e
Event The event to check
- Inherited From:
- Overrides:
- Source:
Returns:
Modifier state bitmask where:
- 0 = No modifiers
- 1 = Ctrl key
- 2 = Shift key
- 4 = Alt key Multiple modifiers combine their values (e.g., Ctrl+Shift = 3)
- Type
- number