Skip to content

Commit 807e443

Browse files
committed
The Input class has been given a minor refactor to tidy things up. Specifically:
* pointerN are aliases to backed pointers[N-1] array. This simplifies (and increases the efficiency of) looping through all the pointers when applicable; also eliminates pointer-existance checks Removes various hard-coded limits (added MAX_POINTERS); changed maxPointers default * Removed some special-casing from cases where it did not matter * Removed === false/true, == usage for consistency, changed missing value check to typeof, etc. * Updated documentation for specificty; added @public\@Protected * @deprecated currentPointers due to odd set pattern; totalCurrentPointers is more appropriate. (thanks @pnstickne phaserjs#1283)
1 parent a4870a7 commit 807e443

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ Version 2.1.4 - "Bethal" - in development
9595
* Polygon.area is now only calculated when the Polygon points list is modified, rather than on every call.
9696
* Phaser.Polygon can now accept the points list in a variety of formats: Arrays of Points, numbers, objects with public x/y properties or any combination of, or as a parameter list (thanks @pnstickne for the original implementation #1267)
9797
* All of the Input classes now use the more consistent `enabled` property instead of `disabled`. I.e. you can now check `if (input.mouse.enabled)` rather than `if (!input.mouse.disabled)`. The disabled property has been moved to a getter for backwards compatibility but is deprecated and will be removed in a future version (thanks @pnstickne #1257)
98+
* The Input class has been given a minor refactor to tidy things up. Specifically:
99+
* pointerN are aliases to backed pointers[N-1] array. This simplifies (and increases the efficiency of) looping through all the pointers when applicable; also eliminates pointer-existance checks Removes various hard-coded limits (added MAX_POINTERS); changed maxPointers default
100+
* Removed some special-casing from cases where it did not matter
101+
* Removed === false/true, == usage for consistency, changed missing value check to typeof, etc.
102+
* Updated documentation for specificty; added @public\@protected
103+
* @deprecated currentPointers due to odd set pattern; totalCurrentPointers is more appropriate.
104+
(thanks @pnstickne #1283)
98105

99106
### Bug Fixes
100107

0 commit comments

Comments
 (0)