Richard Davey
e85a66f4e9
Shouldn't be part of the Container
2020-04-27 13:04:08 +01:00
Richard Davey
f66e05b81d
Merge pull request #5042 from Minious/master
...
Fix wrong Container.getBounds with child container
2020-04-27 13:01:53 +01:00
Richard Davey
2c80fad116
When enabling a Game Object for Input Debugging the created debug shape will now factor in the position, scale and rotation of the Game Objects parent Container, if it has one. #4998
2020-04-27 12:52:36 +01:00
Richard Davey
9f5ac5e46b
Merge pull request #4998 from scott20145/fix_inputdebug_shape_position
...
Fix inputDebug shape position when the target is inside a container
2020-04-27 12:45:25 +01:00
Godard
5fd94d76a7
fix Input enableDebug function, add debug Shape to parentContainer
2020-04-09 12:04:20 -04:00
scott.l
10322fcd3a
use gameObject's world position as the debug shape position
2020-02-11 00:34:38 +08:00
mkt
912c0e3bbc
set depth of input debug body
2020-01-22 19:01:26 +01:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Javier García Álvarez
9d418eae73
Fixed jsdoc types to get TS definition intellisense.
2019-12-18 12:25:14 +01:00
F. Selçuk Can
4354255602
changed L12 "pointerup"
to "pointerout"
2019-11-26 13:33:29 +03:00
Richard Davey
1e20ad706e
ADD and SUBTRACT added
2019-11-18 17:09:30 +00:00
Richard Davey
55a4146726
Merge pull request #4826 from Olliebrown/input-drag-thresholds
...
Fixes for malfunctioning Drag Threshold properties (Issue #4667 )
2019-11-18 15:51:26 +00:00
Seth Berrier
174dcfdada
Fixes for drawing of hitboxes in input.debug
...
- Offset hitboxes now draw properly when debug enabled for all shapes
- Addresses issue #4722
2019-10-28 09:43:25 -05:00
Seth Berrier
7b711bd11b
Fixes for malfunctioning Drag Threshold properties
...
- According to issue #4667 drag thresholds have been broken since 3.18
- Changed processDragMove event to check thresholds if set
- Fixed use of '||' when it should be '&&' for skipping threshold checks
- Adding missing 'time' parameter when calling threshold check function
2019-10-25 14:03:43 -05:00
Richard Davey
c60530eedd
Removed commented-out code
2019-10-11 18:35:27 +01:00
Richard Davey
be15a59093
Your guess is as good as mine \o/~?
2019-10-11 18:19:25 +01:00
Richard Davey
c1044379f3
TouchManager.disableContextMenu
is a new method that will try to disable the context menu on touch devices, if the Game Config disableContextMenu
is set. Previously, it only tried to do it for the Mouse Manager, but now does it for touch as well. Fix #4778
2019-10-11 13:42:33 +01:00
Richard Davey
4e8ab3dcae
MouseManager.target
can now be defined as either a string or by passing an HTMLElement directly. Fix #4353
2019-10-02 13:39:42 +01:00
Richard Davey
4be4ba4823
Merge pull request #4707 from MatthewAlner/Bug#4706-ignored-attempt-to-cancel-a-touchstart
...
Bug#4706 add `event.cancelable` check
2019-09-26 12:09:06 +01:00
Richard Davey
d875a59958
InteractiveObject.alwaysEnabled
is a new boolean that allows an interactive Game Object to always receive input events, even if it's invisible or won't render.
2019-09-24 12:36:28 +01:00
Richard Davey
9f8e9d2afc
InputPlugin.processDragMove
has been updated so that the resulting dragX
and dragY
values, sent to the event handler, now compensate for the scale of the Game Objects parent container, if inside of one. This means dragging a child of a scale Container will now still drag at 'full' speed.
2019-09-16 15:47:18 +01:00
Matthew Alner
4b42bc426b
Bug#4706 add event.cancelable
check
2019-08-11 12:46:28 +01:00
Richard Davey
f872b1ece9
Updated docs
2019-08-07 12:20:17 +01:00
Richard Davey
5dd75b64fc
Pointer.updateWorldPoint
is a new method that takes a Camera and then updates the Pointers worldX
and worldY
values based on the cameras transform
2019-08-07 12:10:50 +01:00
Richard Davey
08c09b539d
Added enableDebug
and removeDebug
from the Input Plugin, allowing you to create debug shapes to test where input hit areas are.
2019-07-19 15:16:10 +01:00
Richard Davey
aceecf0b95
InputManager.resetCursor
will now check if the canvas element still exists before resetting the cursor on it. Fix #4662
2019-07-19 14:32:07 +01:00
Richard Davey
131bf336ee
Update Pointers every frame, if not already updated.
2019-07-08 14:59:19 +01:00
Richard Davey
84522136d0
We can now use the locked
property and don't need to add to the movement values every frame. Fix #4611
2019-07-08 14:59:06 +01:00
Richard Davey
af37728e31
Added onPointerLockChange handler.
2019-07-08 13:29:50 +01:00
Richard Davey
254f3843e5
Added locked
property.
2019-07-08 13:29:39 +01:00
Richard Davey
c7e2fbb31c
Calling input.mouse.requestPointerLock()
will no longer throw an error about being unable to push to the Input Manager events queue. #4611
2019-07-08 13:27:46 +01:00
Richard Davey
14a6864f21
If you called Scene.destroy
within a Game Object pointerdown
or pointerup
handler, it would cause the error "Cannot read property 'game' of null" if the event wasn't cancelled in your handler. It now checks if the manager is still there before accessing its property. Fix #4436
2019-06-27 01:13:27 +01:00
Richard Davey
839e298c4e
Pointer.getDuration
would return a negative / static value on desktop, or NaN on mobile, because the base time wasn't being pulled in from the Input Manager properly. Fix #4612
2019-06-24 10:58:44 +01:00
Rex
16a038674f
Set customHitArea to false if shape is not defined
...
In setHitArea method, use setHitAreaFromTexture if shape is undefined. Suppose that it is not a case of `customHitArea`
2019-06-22 09:37:49 +08:00
Richard Davey
6004237d37
Get the correct time value
2019-06-20 09:58:59 +01:00
Richard Davey
8837cb3fd1
JSDocs fix
2019-06-20 09:58:48 +01:00
Richard Davey
8fe4b37a94
JSDoc fix
2019-06-19 15:52:08 +01:00
Richard Davey
1676f22360
Automatically handle the drag values in rotated containers
2019-06-19 10:41:48 +01:00
Richard Davey
4a91b1e560
Added dragStartXGlobal
and dragStartYGlobal
properties
2019-06-19 10:41:26 +01:00
Richard Davey
0791ae10d2
Added button property and methods for leftButtonReleased, rightButtonReleased and so on.
2019-06-12 11:19:00 +01:00
Richard Davey
9327351e86
Added deltaX, Y, Z and wheel method.
2019-06-05 15:31:25 +01:00
Richard Davey
98be6adfda
Native support for wheel events
2019-06-05 15:31:13 +01:00
Richard Davey
62cb5c68a8
Added 3 new Wheel input events
2019-06-05 15:30:54 +01:00
Richard Davey
700c9daaa1
New input const (and changed order to be numeric order)
2019-06-05 15:30:42 +01:00
Richard Davey
af3efc9e2f
Added more docs to make #4575 clearer
2019-06-05 14:08:01 +01:00
Richard Davey
4ed0f90bf7
Merged touch handler methods into one
2019-06-04 18:54:35 +01:00
Richard Davey
befbc788a3
Added new TouchCancelWindow handler
2019-06-04 18:54:00 +01:00
Richard Davey
15654be545
update motion automatically
2019-06-04 18:53:48 +01:00
Richard Davey
7f2feea4ae
All the touch handlers now store the full TouchEvent, not just the Touch List entry
2019-06-04 15:46:16 +01:00
Richard Davey
bf48c53103
Added new over and out handlers for touch events
2019-06-04 15:43:02 +01:00