Richard Davey
50502cfb63
Added emitOnRepeat boolean
2018-12-07 19:28:25 +00:00
Richard Davey
1df20f9070
Keyboard events can now be blocked on a local or global level.
2018-12-06 11:35:16 +00:00
Richard Davey
715e6d3c15
Added key capturing methods.
2018-12-05 16:07:47 +00:00
Richard Davey
114d61cf59
Added capture handling and event queue.
2018-12-05 16:02:29 +00:00
Richard Davey
7431f0a621
No longer required.
2018-12-05 15:58:53 +00:00
Richard Davey
dd051ddc03
Added event handlers and event emitter.
2018-12-05 15:58:44 +00:00
Richard Davey
606a3832c1
Moving to a global keyboard manager for the DOM events.
2018-12-05 11:16:45 +00:00
Richard Davey
578158cfcb
Updated docs
2018-11-13 17:04:31 +00:00
Richard Davey
8de7973c92
Added new captures array.
2018-11-13 15:09:18 +00:00
Richard Davey
696e3dc6b8
Prevent non-modified keys only
2018-11-12 23:01:30 +00:00
Richard Davey
d8b0bf7a29
Added metaKey support
2018-11-12 23:00:56 +00:00
Richard Davey
5f92b05fd7
Added game config keyboard capture flag for global preventDefault handling.
2018-11-12 22:22:12 +00:00
Mohammad Javad Afkari
4b5d8d0878
+ add forgotten keyCode (firefox in windows)
2018-10-19 11:42:57 +03:30
Mohammad Javad Afkari
0dfdeb1f92
+ forgotten keyCode (firefox)
2018-10-18 22:44:24 +03:30
Richard Davey
f29126c482
KeyboardPlugin.resetKeys
is a new method that will reset the state of any Key object created by a Scene's Keyboard Plugin.
2018-10-16 11:35:44 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Richard Davey
e01013d418
Formatting
2018-09-12 01:03:41 +01:00
Dhruv Yadav
0fd6d9d7dc
Fixed a trailing spaces issue from the addKey(string) whitespace update
2018-08-30 21:58:54 +05:30
Dhruv Yadav
75319233f2
Styling updates for addKey(string) whitespace fix
2018-08-30 21:53:19 +05:30
Dhruv Yadav
f29892b73f
Fixed addKeys(string) whitespace issue
2018-08-30 21:36:36 +05:30
spontoreau
e922f378f4
Add CursorKeys type to Phaser.Input.Keyboard namespace
2018-08-26 22:28:21 +02:00
Jonan Scheffler
7c525b00fa
Correct Konami code in createCombo documentation.
2018-08-07 14:25:48 -07:00
Richard Davey
61954dedcb
Added checkDown
method and related properties.
2018-07-13 11:13:32 +01:00
Richard Davey
d6c2b1104b
Replace KeyboardManager with KeyboardPlugin
2018-06-12 14:44:51 +01:00
Richard Davey
87c950a5ea
Fixed jsdocs
2018-06-08 16:18:39 +01:00
Richard Davey
02554984fe
Removed KeyboardManager and replaced with KeyboardPlugin
...
The `KeyboardManager` class has been removed. It has been replaced with `KeyboardPlugin` which is now an Input level plugin, that registers itself with the new `InputPluginCache`. The Input Plugin class (which belongs to a Scene) will now automatically inject registered plugins into itself on boot. Every Scene has its own instance of the Input Plugin (if enabled in the scene plugins), which in turn has its own instance of the KeyboardPlugin. The `InputManager` no longer has any reference to the Keyboard class at all. The benefits of this are two-fold: First, it allows you to now entirely exclude all of the keyboard classes from a custom build, saving a lot of space if not required. Secondly, it means that the Scenes themselves are now responsible for keyboard events, where-as before they were entirely global. This means a Scene can be paused and stop processing keyboard events, and stop having its Key objects updated, while another Scene can still carry on doing this. It also prevents key related callbacks in sleeping Scenes from being fired (which resolves issue #3733 , thanks @JoeMoov2)
2018-06-08 15:16:35 +01:00
Richard Davey
c847f3459e
addKey and removeKey can take Key objects now. Plus finished the docs.
2018-06-04 17:03:31 +01:00
Richard Davey
97fa3ab2c0
KeyboardManager.addKeys can now take either an object or key codes, or a comma-separated string, as its input.
2018-06-04 16:49:03 +01:00
Richard Davey
9eec66654f
Keyboard Manager updates
...
* KeyboardManager.handler has been removed as it's no longer used internally.
* The KeyboardManager.captures property has been removed as it can be more effectively handled by polling the `keys` object instead.
* The Keyboard Manager will no longer process key down or up events if its `enabled` property is set to false.
* The Keyboard Manager will now call `event.preventDefault` on the native DOM event as long as the Key exists in the keys array and has its `preventDefault` property set to `true` (which is the default). This means you can now control specifically which key prevents default on the browser, where-as before every key added did so.
2018-06-04 15:57:52 +01:00
Richard Davey
6906e6bd15
Hundreds more jsdocs completed.
2018-06-04 15:19:25 +01:00
Richard Davey
700a26a196
Input systems listen to Input Manager events rathern than being directly hooked in
2018-05-25 19:27:26 +01:00
Richard Davey
4c1703768d
Docs update
2018-05-18 17:37:20 +01:00
Richard Davey
2f4358fed4
The keycodes for 0 to 9 on the numeric keypad have been added. You can now use them in events
2018-05-15 15:57:26 +01:00
Richard Davey
349a95bc4b
Updating to 3.6.0
2018-04-19 14:45:45 +01:00
Richard Davey
895c9f9694
Missing module fix
2018-04-19 12:39:28 +01:00
Richard Davey
32ce8d7947
jsdoc fixes and removed un-used ResetKey file.
2018-04-19 12:30:38 +01:00
Richard Davey
18585de81d
Lots of jsdoc fixes
2018-04-16 14:43:24 +01:00
Christian Panadero
c08f769351
Add keyboardManaged#createCursorKeys typedefs
2018-04-06 18:17:58 +01:00
Richard Davey
11512e1db2
Keyboard.JustDown and Keyboard.JustUp were being reset too early, causing them to fail when called in update
loops. Fix #3490
2018-04-03 16:33:13 +01:00
Richard Davey
316da3f2d9
jsdocs update. Fix #3477
2018-04-03 14:08:22 +01:00
Richard Davey
2a35a20fcb
Swapped for enum
2018-03-30 14:16:42 +01:00
Richard Davey
a86fc19d3c
jsdoc fix
2018-03-30 14:12:09 +01:00
Richard Davey
747f09af86
jsdoc fixes
2018-03-28 15:04:09 +01:00
orblazer
d0e1320cbe
Add generic types and fix types on Input and Structs
2018-03-27 15:59:49 +02:00
orblazer
439df07fd5
Fix "object" type on GameObjects and Input
2018-03-21 12:19:31 +01:00
orblazer
dca7996179
Fix multiple types on Physics, Texture and Input
2018-03-20 16:10:19 +01:00
orblazer
41d7c4b715
Add callbacks on Input and Geom
2018-03-19 22:12:11 +01:00
orblazer
0b1078fdb8
Update JSDoc on Input
2018-03-19 13:43:19 +01:00
dominic
af7d619dc3
Simplify global key down emit check
2018-02-25 21:16:05 +08:00
squaresun
9af8cdcea6
Fix key.repeats not increased when key holding down
2018-02-25 21:03:58 +08:00
squaresun
c5514bcab7
Fix KeyboardManager keydown events keeps firing #3239
2018-02-24 18:20:36 +08:00
Richard Davey
b57ab091c1
The KeyCode FORWAD_SLASH
had a typo and has been changed to FORWAD_SLASH
. Fix #3271 (thanks @josedarioxyz)
2018-02-22 01:59:32 +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
c9742b6f8a
Added jsdocs
2018-02-10 02:08:53 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +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
a6dbacbc20
Added jsdocs.
2018-01-26 12:43:51 +00:00
Richard Davey
cb3166850e
Fixed issue with Keyboard events for single key presses. Added new KeyMap.
2018-01-23 14:37:32 +00:00
Richard Davey
05b45f1f9c
Added keycodes ( closes #3174 )
2018-01-20 14:22:41 +00:00
Dan Flettre
36de5e8805
Pass event to ProcessKeyCombo
2018-01-16 11:24:40 -06:00
Richard Davey
f9a1e27334
Removed un-used event files and references.
2018-01-12 17:20:16 +00:00
Richard Davey
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Dan Flettre
16b672e291
set data to KeyCombo for KeyComboMatchEvent
2018-01-11 18:14:45 -06:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00