Richard Davey
|
e618e149e8
|
Update InputPlugin.js
|
2022-10-28 18:43:40 +01:00 |
|
Richard Davey
|
94942d6633
|
Update InputPlugin.js
|
2022-10-28 17:57:43 +01:00 |
|
Richard Davey
|
ae378e3820
|
Added resetPointers method
|
2022-10-28 17:56:57 +01:00 |
|
Richard Davey
|
d909af6b62
|
Added Pointer.reset
|
2022-10-28 17:50:26 +01:00 |
|
Richard Davey
|
3e65947cb2
|
When calling InputPlugin.clear it will now call removeDebug on the Game Object, making sure it clears up any Input Debug Graphics left in the Scene. Fix #6137
|
2022-10-14 13:32:59 +01:00 |
|
Richard Davey
|
023343c789
|
All events have a type of string. Fix #6136
|
2022-09-21 22:01:03 +01:00 |
|
Richard Davey
|
4fd0fa2ab2
|
Update KeyboardPlugin.js
|
2022-05-27 18:54:41 +01:00 |
|
Richard Davey
|
033d4eeb32
|
Merge pull request #6084 from spayton/master
Allow input debug hit area colour to be adjusted after enabling.
|
2022-05-09 17:13:37 +01:00 |
|
Richard Davey
|
6d9aceb727
|
The Key.reset method no longer resets the Key.enabled or Key.preventDefault booleans back to true again, but only resets the state of the Key. Fix #6098
|
2022-05-06 15:12:27 +01:00 |
|
stu
|
c0e63d6a3a
|
Allow input debug hit area colour to be adjusted after enabling.
|
2022-04-21 19:03:27 +01:00 |
|
Richard Davey
|
c49674dff8
|
Updated docs
|
2022-04-14 15:35:33 +01:00 |
|
Lukas Hass
|
b7a4b77a6a
|
Disable context menu on input target instead of document.body
Fixes #6064
|
2022-04-02 23:57:15 +02:00 |
|
Richard Davey
|
59fbcc5ca3
|
Updated copyright year
|
2022-02-28 14:29:51 +00:00 |
|
Richard Davey
|
982ab23aba
|
Update InputPlugin.js
|
2021-12-01 18:30:02 +00:00 |
|
Richard Davey
|
11ae9f1b35
|
Make use of the disable method to avoid duplication of code
|
2021-12-01 18:10:04 +00:00 |
|
Richard Davey
|
a9538c0145
|
Updated function to use internal vars and fixed jsdoc. Also don't return if input false, as object may still be in arrays anyway #5839
|
2021-12-01 17:59:46 +00:00 |
|
Richard Davey
|
385800ec2f
|
Merge pull request #5839 from natureofcode/fix/issue-5828
Fix #5828, improve GameObject#disableInteractive() and InputPlugin#disable()
|
2021-12-01 17:46:34 +00:00 |
|
Richard Davey
|
322a6131f8
|
Added clarifications to the documentation re: out handling. Close #5796
|
2021-12-01 17:41:46 +00:00 |
|
Richard Davey
|
e1718f9fbe
|
The InputPlugin.sortGameObjects will now assign a value of 0 to any game object not in the render list, but still viable for input, such as an invisible object with alwaysEnabled set to true. This fixes an issue where non-render list objects would be skipped. Fix #5507
|
2021-12-01 17:03:01 +00:00 |
|
Richard Davey
|
91f72f7700
|
The InputManager.onTouchMove method will now check if the changed touch is over the canvas, or not, via the DOM elementFromPoint function. This means if the touch leaves the canvas, it will now trigger the GAME_OUT and GAME_OVER events, where-as before this would only happen for a Mouse. If the touch isn't over the canvas, no Pointer touch move happens, just like with the mouse. Fix #5592
|
2021-12-01 16:36:06 +00:00 |
|
Richard Davey
|
d36c8177b5
|
Update InputManager.js
|
2021-12-01 13:15:27 +00:00 |
|
Richard Davey
|
c0d2d1d35e
|
Removed over and out events as no browser supports them. Tidied up the rest. Added isTop property.
|
2021-11-30 22:38:26 +00:00 |
|
Richard Davey
|
1273145a6b
|
When the Pointer moves out of the canvas and is released it would trigger Uncaught TypeError: Cannot read properties of undefined (reading 'renderList') if multiple children existed in the pointer-out array. Fix #5867
|
2021-11-30 20:29:16 +00:00 |
|
404
|
3a3f479196
|
fix: The window touchcancel event is not removed
|
2021-11-08 16:13:59 +08:00 |
|
Richard Davey
|
68550dbddb
|
Update Key.js
|
2021-11-02 22:54:17 +00:00 |
|
Richard Davey
|
3e1d77ad8f
|
The KeyboardPlugin.removeKey method has a new optional parameter removeCapture . This will remove any keyboard capture events for the given Key. Fix #5693
|
2021-11-01 18:13:51 +00:00 |
|
Richard Davey
|
c391ad6c87
|
Check if still input enabled
|
2021-10-26 18:24:06 +01:00 |
|
natureofcode
|
81e3c06676
|
Hotfix broken drag
|
2021-09-17 23:00:29 +05:00 |
|
natureofcode
|
89ff86202b
|
Fix #5828
|
2021-09-17 12:19:39 +05:00 |
|
Sylvain Pollet-Villard
|
dca5346573
|
types: JSDoc for Phaser.Input.Gamepad.Configs
|
2021-07-08 23:53:58 +02:00 |
|
Richard Davey
|
f802ac5d8c
|
The Input.Pointer.event property can now be a WheelEvent as well.
|
2021-05-03 18:15:20 +01:00 |
|
samme
|
9e4d693481
|
Docs: fix type for KeyboardPlugin#manager
|
2021-04-02 10:31:49 -07:00 |
|
Richard Davey
|
29d38b3283
|
Updated docs
|
2021-03-24 16:36:22 +00:00 |
|
Ben Randall
|
e0f26f6b9d
|
Remove and destry all Keys in Scene.Shutdown()
|
2021-03-17 20:01:24 -07:00 |
|
Richard Davey
|
616566c35a
|
Renamed sortGameObjects to sortDropZones and then repurposed the old method for the new render list sorting technique.
|
2021-01-07 12:32:00 +00:00 |
|
cjw6k
|
19c2874166
|
Added prevType to constructor.
|
2020-12-28 17:37:54 -04:00 |
|
cjw6k
|
8771c81649
|
Check event.type in duplicate event bailout
Fixes #5471.
|
2020-12-27 17:24:14 -04:00 |
|
Richard Davey
|
417f7684c3
|
More integer to number changes
|
2020-11-23 10:32:00 +00:00 |
|
Richard Davey
|
3f511a73cd
|
Replace integer[] with number[]
|
2020-11-23 10:23:10 +00:00 |
|
Richard Davey
|
02c34cd64e
|
Replace integer with number
|
2020-11-23 10:22:13 +00:00 |
|
Richard Davey
|
619fd18028
|
MouseManager.preventDefaultWheel is a new boolean property, set via the inputMousePreventDefaultWheel config option that allows you to toggle capture of mouse wheel at runtime.
|
2020-10-07 10:14:02 +01:00 |
|
Richard Davey
|
a16ab01e22
|
MouseManager.isTop is a new boolean read-only property that flags if the mouse event listeners were attached to window.top (true), or just window (false). By default Phaser will attempt window.top , but this isn't possible in all environments, such as cross-origin iframes, so it will fall back to window in those cases and set this property to false
|
2020-10-05 10:40:35 +01:00 |
|
Richard Davey
|
0fb0c094c6
|
Removed inner loop
|
2020-10-05 08:07:06 +01:00 |
|
Richard Davey
|
76deec0ef6
|
When destroying an interactive Game Object that had useHandCursor enabled, it would reset the CSS cursor to default, even if the cursor wasn't over that Game Object. It will now only reset the cursor if it's over the Game Object being destroyed. Fix #5321
The `InputPlugin.shutdown` method will now reset the CSS cursor, in case it was set by any Game Objects in the Scene that have since been destroyed.
|
2020-09-22 22:40:56 +01:00 |
|
Richard Davey
|
aea0e4c925
|
Pointer.down will now check if the browser is running under macOS and if the ctrl key was also pressed, if so, it will flag the down event as being a right-click instead of a left-click, as per macOS conventions. Fix #4245
|
2020-09-22 20:42:38 +01:00 |
|
samme
|
08b2ea467b
|
Docs: correct CursorKeys
Properties not optional
|
2020-09-18 08:57:05 -07:00 |
|
Richard Davey
|
b63cc75154
|
Remove Camera.resolution use
|
2020-09-12 11:55:38 +01:00 |
|
Richard Davey
|
f2fca49b3f
|
Remove Camera resolution use
|
2020-09-12 11:55:26 +01:00 |
|
Richard Davey
|
2acfbfbe71
|
Gamepad._created is a new private internal property that keeps track of when the instance was created. This is compared to the navigator timestamp in the update loop to avoid event spamming. Fix #4890.
|
2020-09-11 14:01:55 +01:00 |
|
Richard Davey
|
5ecdc3b4a2
|
The GamepadPlugin will now call refreshPads as part of its start process. This allows you to use Gamepads across multiple Scenes, without having to wait for a connected event from each one of them. If you've already had a connected event in a previous Scene, you can now just read the pads directly via this.input.gamepad.pad1 and similar. Fix #4890
|
2020-09-11 14:00:14 +01:00 |
|