- Source: src/cameras/controls/typedefs/index.js (Line 7)
Type Definitions
-
FixedKeyControlConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/cameras/controls/typedefs/FixedKeyControlConfig.js (Line 1)
Properties:
Name Type Argument Default Description cameraPhaser.Cameras.Scene2D.Camera <optional>
The Camera that this Control will update.
leftPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera left.
rightPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera right.
upPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera up.
downPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera down.
zoomInPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will zoom the Camera in.
zoomOutPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will zoom the Camera out.
zoomSpeednumber <optional>
0.01 The speed at which the camera will zoom if the
zoomInorzoomOutkeys are pressed.speednumber | Object <optional>
0 The horizontal and vertical speed the camera will move.
-
SmoothedKeyControlConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/cameras/controls/typedefs/SmoothedKeyControlConfig.js (Line 1)
Properties:
Name Type Argument Default Description cameraPhaser.Cameras.Scene2D.Camera <optional>
The Camera that this Control will update.
leftPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera left.
rightPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera right.
upPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera up.
downPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will move the Camera down.
zoomInPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will zoom the Camera in.
zoomOutPhaser.Input.Keyboard.Key <optional>
The Key to be pressed that will zoom the Camera out.
zoomSpeednumber <optional>
0.01 The speed at which the camera will zoom if the
zoomInorzoomOutkeys are pressed.accelerationnumber | Object <optional>
0 The horizontal and vertical acceleration the camera will move.
dragnumber | Object <optional>
0 The horizontal and vertical drag applied to the camera when it is moving.
maxSpeednumber | Object <optional>
0 The maximum horizontal and vertical speed the camera will move.
