mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Previously the Input Manager would create a Touch handler unless the Game Config had input.touch
set to false
(the default was true). If no such property is set, it no longer defaults to true
and instead is set to whatever Device.input.touch
returns. On non-touchscreen desktops this means it will now only create one single Pointer, rather than two.
This commit is contained in:
parent
f3b35f0466
commit
144cfaff8f
2 changed files with 3 additions and 1 deletions
|
@ -189,6 +189,7 @@ Most of the updates were about documentation and module namespacing, however tho
|
|||
* The Tilemap `createFromObjects` method will now add custom properties to the Game Objects. It works by checking if the property exists or not, and if not, it sets it in the Game Objects Data Manager (thanks @scalemailted @samme)
|
||||
* In Matter.js if you scaled a Body it would only scale correctly once, due to the way Matter handles scaling internally. We now automatically reset the Matter scale before applying the new value, which allows you to keep the Phaser and Matter object scales in sync. Fix #3785 #3951 (thanks @bergben)
|
||||
* The default Container Blend Mode is now `SKIP_TEST`. This allows you to either set a blend mode for a Container, in which case all children use that blend mode. Or, you can set a blend mode on the children and the children will render using their own blend modes, as the Container doesn't have one set. The WebGL and Canvas Renderer functions have also been updated to support this change. Fix #3684 (thanks @TadejZupancic)
|
||||
* Previously the Input Manager would create a Touch handler unless the Game Config had `input.touch` set to `false` (the default was true). If no such property is set, it no longer defaults to `true` and instead is set to whatever `Device.input.touch` returns. On non-touchscreen desktops this means it will now only create one single Pointer, rather than two.
|
||||
|
||||
### Game Config Resolution Specific Bug Fixes
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
var Class = require('../utils/Class');
|
||||
var CONST = require('../const');
|
||||
var Device = require('../device');
|
||||
var GetFastValue = require('../utils/object/GetFastValue');
|
||||
var GetValue = require('../utils/object/GetValue');
|
||||
var IsPlainObject = require('../utils/object/IsPlainObject');
|
||||
|
@ -367,7 +368,7 @@ var Config = new Class({
|
|||
/**
|
||||
* @const {boolean} Phaser.Boot.Config#inputTouch - [description]
|
||||
*/
|
||||
this.inputTouch = GetValue(config, 'input.touch', true);
|
||||
this.inputTouch = GetValue(config, 'input.touch', Device.input.touch);
|
||||
|
||||
/**
|
||||
* @const {?*} Phaser.Boot.Config#inputTouchEventTarget - [description]
|
||||
|
|
Loading…
Reference in a new issue