mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +00:00
Added InputSmoothFactor
config property.
This commit is contained in:
parent
a6ef139f20
commit
8fca5ab575
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,7 @@ var ValueToColor = require('../display/color/ValueToColor');
|
|||
* @property {(boolean|TouchInputConfig)} [touch=true] - Touch input configuration. `true` uses the default configuration and `false` disables touch input.
|
||||
* @property {(boolean|GamepadInputConfig)} [gamepad=false] - Gamepad input configuration. `true` enables gamepad input.
|
||||
* @property {integer} [activePointers=1] - The maximum number of touch pointers. See {@link Phaser.Input.InputManager#pointers}.
|
||||
* @property {number} [smoothFactor=0] - The smoothing factor to apply during Pointer movement. See {@link Phaser.Input.Pointer#smoothFactor}.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -472,6 +473,11 @@ var Config = new Class({
|
|||
*/
|
||||
this.inputActivePointers = GetValue(config, 'input.activePointers', 1);
|
||||
|
||||
/**
|
||||
* @const {integer} Phaser.Boot.Config#inputSmoothFactor - The smoothing factor to apply during Pointer movement. See {@link Phaser.Input.Pointer#smoothFactor}.
|
||||
*/
|
||||
this.inputSmoothFactor = GetValue(config, 'input.smoothFactor', 0);
|
||||
|
||||
/**
|
||||
* @const {boolean} Phaser.Boot.Config#inputGamepad - Enable the Gamepad Plugin. This can be disabled in games that don't need gamepad input.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue