Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00
Richard Davey
75b9238ede
Pointer now records if the last input was from touch or mouse, and doesn't dispatch OUT and OVER events accordingly. Even though this goes against what the DOM does it's a far more common situation in games to ignore them.
2018-01-08 09:58:17 +00:00
Richard Davey
f0ea5bfca2
Tidying up the global input manager.
2018-01-04 15:42:14 +00:00
Richard Davey
8ec688c597
Removed use of offset props and swapped to bounding rect
2017-12-13 22:08:15 +00:00
Michael Hadley
d563cabadd
Improved pointer lock api
...
Some improvements over v2:
- You can access movementXY on pointer without needing to perform a manual `resetMovement()`
- Fixes bug where `releasePointerLock` would unregister event listeners before a final `pointerLockChange` could be called. Results in mouse.locked not having the right state and a final 'POINTER_LOCK_CHANGE_EVENT' not firing.
2017-12-08 17:05:05 -06:00
Richard Davey
01df434a72
Moving from using the name 'components' to 'inc' where it's a case of the method being spllit into its own file to keep things clean, rather than an actual component.
2017-09-13 14:17:38 +01:00
Richard Davey
f98bbc12d8
Added the new Gamepad Input classes
2017-09-09 03:17:13 +01:00
photonstorm
52bb355429
Removing old and incorrect jsdoc blocks ready for first documentation pass.
2017-08-01 13:10:08 +01:00
photonstorm
9e10fca98d
Added Touch support. Doesn't handle multi-touch yet, but single touch works perfectly with all current input tests.
2017-07-28 03:28:10 +01:00
Richard Davey
795fa5f5cb
Merging in the draggable input handler
2017-07-27 03:40:58 +01:00
Richard Davey
4c2df65cff
Large refactoring of the Input Manager
...
Split events out into Game Object and global Pointer ones. Removed redundant topOnly checks (as the source array is already filtered), removing use of 'childOn' functions. Normalizing event data.
2017-07-24 23:47:55 +01:00
Richard Davey
7992dfd569
Refactored to support multi pointers per IO and topOnly
2017-07-21 03:39:55 +01:00
photonstorm
c6a2edd855
Refactored Input Manager as it was getting too large for a single file class. Split up into Scene and Global Managers, broke all functions off into single files and started work on the new multi-pointer flow.
2017-07-20 17:10:12 +01:00