Richard Davey
a8213f07b9
Recoded HitTest so it no longer needs a matrix or matrix operations.
2018-01-04 15:42:15 +00:00
Richard Davey
f0ea5bfca2
Tidying up the global input manager.
2018-01-04 15:42:14 +00:00
Richard Davey
e459729782
Function now takes x and y values directly instead of via a point. Returns vector2 if not defined.
2018-01-04 15:42:13 +00:00
Richard Davey
90620e9d1f
Working through bounds and input issues
2018-01-04 00:02:48 +00:00
Richard Davey
176b9c0fed
We can move the topOnly
check into the update and be done with it
2018-01-03 17:05:51 +00:00
Richard Davey
7695afd1fe
Fix #3144
2018-01-03 16:30:51 +00:00
Richard Davey
b85ae018dd
Removed rogue log
2018-01-03 15:09:45 +00:00
Richard Davey
98a82e3672
Added Input.setTopOnly and fixed process handling when topOnly is used with over / out events ( #3136 )
2018-01-03 15:09:06 +00:00
Richard Davey
8334826de0
Working through some topOnly debug tests
2018-01-03 01:55:12 +00:00
Richard Davey
c7803e0cd2
Debugging topOnly events
2017-12-28 15:14:16 +00:00
Richard Davey
fb2c2c75b2
Updated passive and capture states of the input handlers
2017-12-27 23:52:46 +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
cf300ecd4a
Comment phrasing fix
2017-12-08 17:08:04 -06: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
31d2262cb4
Fixed HitTest
2017-11-29 23:35:53 +00:00
Richard Davey
a86b68e361
Removed un-needed WorldToCamera, implemented GetWorldPoint across the board
2017-11-29 22:23:58 +00:00
Felipe Alfonso
3b296162cf
Camera input transform update
2017-11-28 19:18:05 -03:00
Richard Davey
c58b295fcc
Added positionToCamera method (but still needs fixing)
2017-11-28 11:16:35 +00:00
Richard Davey
d9a9c7a5a1
esline tidy-up.
2017-11-28 11:15:45 +00:00
Richard Davey
4969bf37e6
The local input manager has a reference to the active pointer.
2017-11-28 11:15:35 +00:00
Richard Davey
4f7a02ef2e
Pointer.position is now a Vec2 and x/y references to it
2017-11-23 01:44:58 +00:00
Richard Davey
829f33aa85
Input area should use realWidth and realHeight
2017-11-07 14:55:33 +00:00
Jower
b4cc15414a
Remove redundant checks
2017-11-03 11:28:27 +01:00
Richard Davey
c93f571c32
SceneInputManager now uses the Scene event dispatcher. Fix #3085
2017-11-02 16:14:11 +00:00
Richard Davey
f03a829cfd
Fixed setPoll method names
2017-10-08 22:38:32 +01:00
Richard Davey
6431d99908
Added ability to set dragStart, drag and dragEnd callbacks.
2017-09-29 11:40:11 +01:00
Igor Petushkov
31c38ad942
fix KeyCombo [TypeError: Cannot read property 'on' of undefined]
2017-09-27 19:04:39 +03:00
Richard Davey
669f2e8350
Fixed callbacks not firing if an event nukes an interactive Game Object.
2017-09-25 16:06:16 +01:00
Richard Davey
e224faa903
Added space and shift to createCursors method
2017-09-16 03:08:09 +01: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
6321a9d843
Fixed pad === null error when browser reports undefined instead
2017-09-12 12:41:20 +01:00
Richard Davey
5369ecbffe
Added in Gamepad axis support
...
Also removed issue stopping analogue buttons working properly. Added in config for DualShock 4 controller.
2017-09-11 01:28:09 +01:00
Richard Davey
e61889f49a
Added gamepads to Device feature test
2017-09-09 03:28:38 +01:00
Richard Davey
f98bbc12d8
Added the new Gamepad Input classes
2017-09-09 03:17:13 +01:00
Richard Davey
9bc448341e
Added x/y getters to input manager for quick (if limited) access
2017-09-07 22:26:53 +01:00
Richard Davey
7670ec50bb
Derive game instance from Scene
2017-08-15 23:35:35 +01:00
photonstorm
52bb355429
Removing old and incorrect jsdoc blocks ready for first documentation pass.
2017-08-01 13:10:08 +01:00
Richard Davey
fae3223000
Only consider inputEnabled cameras and removed some old jsdocs
2017-07-29 02:52:12 +01:00
Richard Davey
ed59579220
Pointer now records which camera it used and all events now carry a camera property
2017-07-29 01:55:17 +01:00
Richard Davey
e9d7940e74
HitTest only tests the camera below the pointer and there is no benefit polling every single camera
2017-07-29 01:54:17 +01:00
Richard Davey
8980616962
Input Manager now uses Camera Manager directly
2017-07-29 01:53:49 +01:00
Richard Davey
08ce1c37da
Fixed HitTest issue with scrollFactor
2017-07-29 01:05:46 +01:00
photonstorm
db113b58da
Exposed the camera responsible for the input event.
2017-07-28 18:22:57 +01:00
photonstorm
c8a1dc32cc
Updated drag event.
2017-07-28 18:00:04 +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
photonstorm
e20d4b1156
Now possible to clear interactive objects.
2017-07-28 01:17:18 +01:00
photonstorm
d2f08f0818
Added 'dropped' property to the DragEnd event.
2017-07-28 00:46:37 +01:00
photonstorm
a2d1f86079
Added DragEnter, DragOver and DragLeave events for drop zones.
2017-07-28 00:29:22 +01:00
photonstorm
98f75599a5
Added Drop Event and handler for it.
2017-07-27 18:24:04 +01:00
photonstorm
b71972fac5
Reverted dragX/Y calc.
2017-07-27 17:56:48 +01:00