Richard Davey
d87cb43a7f
Removed touch limit on over/out
2019-05-28 17:26:31 +01:00
Richard Davey
e12002bf74
Use a switch instead
2019-05-28 17:21:40 +01:00
Richard Davey
520e2e621f
Catch poll zero
2019-05-28 17:08:30 +01:00
Richard Davey
95f69bbd9e
Split the drag method up into different parts, removed un-used properties and tided up the loop
2019-05-28 16:58:52 +01:00
Richard Davey
7142319f24
Removed un-used methods and properties
2019-05-28 16:58:31 +01:00
Richard Davey
094541d968
Removed dirty and just
properties as no longer required, also removed reset method
2019-05-28 16:57:08 +01:00
Richard Davey
961e858cbf
Working through making the Input system DOM responsive and not reliant on the game step
2019-05-24 19:30:13 +01:00
Richard Davey
9a2b8b966d
Use getFrame
2019-05-24 15:28:38 +01:00
Richard Davey
7073f39a19
Removed all of the DOM Callbacks, input queue and legacy input handling. Renamed methods from 'queue' to 'on' and tidied up internal content
2019-05-23 17:19:30 +01:00
Richard Davey
1d1c4e6543
Removed all input queue elements
2019-05-23 17:19:03 +01:00
Richard Davey
186887c920
Added lastAction property and self-invoke the reset method
2019-05-23 17:18:49 +01:00
Richard Davey
81c1ced2c1
Event Managers now have clearer handlers that check enabled directly
2019-05-23 17:18:16 +01:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
1dca2c2c8a
Scenes Types
2019-05-09 12:37:37 +01:00
Richard Davey
53ac066d25
More Input Types
2019-05-09 12:03:36 +01:00
Richard Davey
290389c4ae
Input Types
2019-05-09 12:02:03 +01:00
Richard Davey
95eb4fc03d
Setting pixelPerfect
when input enabling a Container would cause it to crash, because Container's don't have a texture to check. It will now throw a run-time warning and skip the Container for input. You should use a custom input callback instead. Fix #4492
2019-04-26 10:56:06 +01:00
Richard Davey
64532d8d7b
InputPlugin.clear
has a new argument skipQueue
which is used to avoid clearing a Game Object twice. This, combined with the fix for 4463 means you will no longer get a Cannot read property 'dragState'
error if you destroy a Game Object enabled for drag where another draggable object exists. Fix #4228
2019-04-24 13:38:40 +01:00
Richard Davey
00dbf8b03e
Destroying a Game object during its pointerup
event handler on a touch device will no longer cause Uncaught TypeError: Cannot read property 'localX' of undefined
. All InputPlugin process handlers now check to see if the Game Object has been destroyed at any stage and abort if it has. Fix #4463
2019-04-24 12:54:56 +01:00
Richard Davey
507bb6a215
Added customHitArea boolean property
2019-04-24 11:21:52 +01:00
Richard Davey
2ef6ad3e51
Fixed jsdoc
2019-04-24 10:54:02 +01:00
Richard Davey
181be88ba9
Updated to use game clock time values.
2019-04-24 10:48:03 +01:00
Richard Davey
6b5383a007
Key now needs a reference to the plugin that created it. Also added getDuration
method.
2019-04-24 10:47:51 +01:00
Richard Davey
d7917789eb
Added destroy argument to removeKey
and cleared plugin reference.
2019-04-24 10:47:22 +01:00
Richard Davey
fd4f45673b
Pointer.getDuration
would only return zero until the pointer was released, or moved (basically any action that generated a DOM event). It now returns the duration regardless of the DOM events. Fix #4444
2019-04-24 10:08:56 +01:00
Richard Davey
31c0b4f2ff
Update now always runs but only once per frame
2019-04-24 10:04:13 +01:00
Richard Davey
95b18ae6e0
Refined poll rate handling and added pluginUpdate
2019-04-24 10:03:58 +01:00
Richard Davey
43c72e23c6
Fixed issue with input events running twice
2019-04-24 09:34:40 +01:00
Richard Davey
e0255c6f0f
Docs fix
2019-04-16 17:08:19 +01:00
Richard Davey
0cfbc7917e
The InputPlugin will now dispatch an update event regardless, allowing the Gamepad Plugin to update itself every frame, regardless of DOM events. This allows Gamepads to work correctly again. Fix #4414
2019-04-08 14:39:28 +01:00
Richard Davey
0ee2442597
Bumping to 3.17.0
2019-03-07 12:31:06 +00:00
Richard Davey
341e78ce0d
Added touch Window handlers and remove handlers
2019-02-22 02:26:52 +00:00
Richard Davey
c90ae09f9f
Added window specific handlers
...
And game config option:
```
input: {
windowEvents: false
},
```
2019-02-22 02:11:13 +00:00
Richard Davey
0db663d901
More typedefs
2019-02-13 15:38:50 +00:00
Richard Davey
3938675d9f
Input typedefs
2019-02-13 14:17:36 +00:00
Richard Davey
c8439393fb
Much better keycode jsdoc handling.
2019-02-12 12:51:43 +00:00
Richard Davey
dc73993fe2
Added jsdoc version numbers
2019-02-12 12:22:25 +00:00
Richard Davey
ccaae460a4
Added jsdoc version numbers to each event
2019-02-12 11:37:58 +00:00
Richard Davey
3104246386
Merge pull request #4347 from rgk/patch-5
...
On mobile, have pointerup and pointerout get triggered together.
2019-02-10 21:17:24 +00:00
Richard Davey
f3f65d1437
Refactored the game over and out handling to work with the non-legacy input system. Fix #4344
2019-02-10 17:10:13 +00:00
Robert Kowalski
6105c1a9b2
Emit pointerout always after pointerup on touch.
...
Now pointerout will always emit after pointerup.
2019-02-08 09:33:25 -05:00
Richard Davey
6cd17618b1
Moved time to getter and fixed checkDown.
2019-02-08 13:32:54 +00:00
Richard Davey
7f91956c09
Added time property and preStep.
2019-02-08 13:32:44 +00:00
Richard Davey
916a13cf9d
resetKeys doc update. Fix #4345
2019-02-07 00:31:10 +00:00
Robert Kowalski
b94f655405
Only needs to be cleared once.
...
No need for the duplicate clearing of this, and quick fix.
2019-02-06 11:38:50 -05:00
Robert Kowalski
8cd8b6f98e
Stops pointerover from being triggered if pointerup has been.
...
In 3.16.1 if you trigger pointerup and then move to another button, the past buttons pointerover event gets triggered. This clears that and stops that from happening by stopping pointerover from being triggered if pointerup has been.
2019-02-06 11:27:22 -05:00
Richard Davey
4cfa29a524
Added flag to help avoid cursor reset issue
2019-02-04 23:29:10 +00:00
Richard Davey
d04232ae54
JSDoc fixes
2019-02-04 11:45:17 +00:00
Richard Davey
348306cafb
Lots more jsdoc fixes and new documentation
2019-01-31 14:47:50 +00:00
Richard Davey
3d5d84c01f
Stop listener
2019-01-29 23:22:29 +00:00