Richard Davey
a2c20a9aa7
lint fixes
2018-06-05 01:08:32 +01:00
Richard Davey
719a2eedca
Interactive Objects inside of Containers would still fire their input events even if the Container (or any ancestor) was set to be invisible. Objects now check their ancestor tree during the input cull and now properly skip input events if not visible. Fix #3620
2018-06-04 21:04:27 +01:00
Richard Davey
61c5f76d63
Added transformPointer method which Pointer now uses.
2018-06-04 15:19:11 +01:00
Richard Davey
3b30fcff89
Added jsdocs
2018-06-04 13:24:47 +01:00
Chris Andrew
fd715f9a34
Fixed lint error in InputManager.update().
2018-05-31 15:19:35 +01:00
Richard Davey
594fc3e27b
Added new dom callback support, streamlined the event flow, moved to consts
2018-05-30 00:33:51 +01:00
Richard Davey
45c373f9f4
Multi-touch support working properly up to 10 pointers and mouse re-enabled.
2018-05-29 16:55:52 +01:00
Richard Davey
57e32761df
Started work on multi-touch support.
2018-05-25 19:28:18 +01:00
Richard Davey
d595da49fd
Now use the prestep event to update instead
2018-05-11 01:50:02 +01:00
Richard Davey
5612336d47
Containers flag
2018-04-12 22:46:46 +01:00
Richard Davey
2e722b0a92
debugging tests
2018-04-12 16:28:14 +01:00
Richard Davey
04990d6870
Input checks for container parents
2018-04-09 16:42:51 +01:00
Richard Davey
91008232ad
jsdoc fixes
2018-03-29 13:12:07 +01:00
orblazer
0b1078fdb8
Update JSDoc on Input
2018-03-19 13:43:19 +01:00
Richard Davey
ee1e4f1e90
InputManager.hitTest will now factor the game resolution into account, stopping the tests from being offset if resolution didn't equal 1. #3376
2018-03-16 12:49:02 +00:00
Richard Davey
550e53b81b
Fixed InputManager.updateBounds
so it factors in the document element position.
...
Also added `InputManager.resize` method, as the scale wouldn't ever be updated in the update loop if no interactive objects exist.
2018-02-28 14:27:28 +00:00
Richard Davey
512c8df232
Updated jsdocs
2018-02-13 01:13:12 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
a802914243
Added in destroy methods for all managers and invoked them from Game
2018-01-31 03:38:10 +00:00
Richard Davey
fabaa493ef
jsdoc work
2018-01-26 06:55:15 +00:00
Richard Davey
eb3c9fe341
Fix for the read-only DOMRect issue flagged in #3176
2018-01-22 12:04:14 +00:00
Richard Davey
4e05ad0655
The Input system will now order input based on the scenes from top to bottom
...
If the global top only flag is on and a scene consumes an input event then they won't flow any further down the scene list. This is optional (but on by default), allowing you to now correctly create a UI Scene above a game scene without the input events polluting one to the other.
2018-01-20 04:44:54 +00:00
Richard Davey
e017a71f32
Game emits a boot event, which its managers listen for
2018-01-18 05:16:52 +00:00
Richard Davey
26fd3ee661
Renamed input manager files and refs.
2018-01-16 16:14:21 +00:00