Richard Davey
5c7e624260
setInteractive
will now take a configuration object as the only argument, allowing for easier setting of more complex input values
2018-06-11 11:35:31 +01:00
Richard Davey
57bf16685a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-11 09:05:57 +01:00
Richard Davey
0b8915520b
Added eslint rules. Fixed incorrect ES6 use.
2018-06-11 09:05:52 +01:00
Richard Davey
bf3e490967
Merge pull request #3734 from AleBles/master
...
Fixed device.os incorrectly reporting Linux as os on Android devices
2018-06-11 08:27:09 +01:00
Richard Davey
5889737183
Preparing for cursor change support
2018-06-08 19:04:12 +01:00
Richard Davey
44569fe20c
Added useHandCursor boolean
2018-06-08 19:04:01 +01:00
Richard Davey
140e743a8d
Added docs and fixed lint issue
2018-06-08 18:24:08 +01:00
Richard Davey
a8105ae0b0
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 17:50:52 +01:00
Richard Davey
4304811dde
Added new Pixel Perfect input handler and makePixelPerfect
method.
2018-06-08 17:50:47 +01:00
Richard Davey
a49e770f89
Added getPixelAlpha method
2018-06-08 17:50:26 +01:00
Chris Andrew
c08dde33b1
Documented some remaining TileSprite descriptions.
2018-06-08 17:07:35 +01:00
Richard Davey
ed97d1594a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 16:18:44 +01:00
Richard Davey
87c950a5ea
Fixed jsdocs
2018-06-08 16:18:39 +01:00
Richard Davey
529442f134
Only install the plugin if set in Scene settings / Game Config
2018-06-08 16:18:32 +01:00
Richard Davey
8148b14cc3
Removed references to the Gamepad
2018-06-08 16:18:20 +01:00
Richard Davey
680d34b3c4
Convert Gamepad Manager to an Input Plugin
2018-06-08 16:17:58 +01:00
Chris Andrew
469c34feee
Documented the remaining descriptions in the Quad and Sprite game objects.
2018-06-08 15:50:44 +01:00
Chris Andrew
ae214a8664
Documented the missing descriptions for the Mesh game object.
2018-06-08 15:42:55 +01:00
Chris Andrew
07e9878166
Documented the Light game object.
2018-06-08 15:40: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
bf46135d84
Allow for Scene level input settings
2018-06-08 15:16:09 +01:00
Richard Davey
11c5c35149
The new Input Plugin cache
2018-06-08 15:15:36 +01:00
Richard Davey
fc0069d9da
Removed all references to keyboard
2018-06-08 15:15:21 +01:00
Richard Davey
43fd10bbc1
ScenePlugin.run
is a new method that will run the given Scene and not change the state of the current Scene at all. If the scene is asleep, it will be woken. If it's paused, it will be resumed. If not running at all, it will be started.
2018-06-08 15:07:00 +01:00
Richard Davey
a6e26ba6c0
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-08 00:23:59 +01:00
Richard Davey
1777c47a23
Added missing check
2018-06-08 00:22:58 +01:00
Chris Andrew
f8ee35d46a
Fixed Gamepad lint errors, tweaked some Graphics docs.
2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb
Adapted Graphics class description from Phaser CE.
...
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Richard Davey
5f1fff6d48
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-07 16:36:36 +01:00
Richard Davey
cfa436f158
Added new methods
2018-06-07 16:36:32 +01:00
Chris Andrew
8d926754cb
Fixed lint issues in Gamepad and GamepadManager.
2018-06-07 16:04:27 +01:00
Chris Andrew
786d2068a3
Documented most of the Graphics Game Object methods.
2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe
Documented initial Graphics options and Graphics style settings types.
2018-06-07 16:01:40 +01:00
Richard Davey
0180a684ca
Added leftStick and rightStick properties and shoulder buttons
2018-06-07 14:30:16 +01:00
AleBles
7fc1fbbb4c
Put Android device check before Linux, because Android useragent always includes 'Linux' and Linux ua doesn't include Android
2018-06-07 10:15:44 +02:00
Richard Davey
ada4656601
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-06-06 23:05:48 +01:00
Richard Davey
aa8d207485
Recoded gamepad event flow, moved to direct handlers, exposed first 4 pads, added full docs
2018-06-06 23:05:10 +01:00
Richard Davey
4c4a415dc3
Added docs, axis and button getters
2018-06-06 23:04:38 +01:00
Richard Davey
1518551c43
Added docs, destroy method, and updated update
2018-06-06 23:04:11 +01:00
Richard Davey
12b6825854
Added docs and destroy method
2018-06-06 23:03:59 +01:00
Richard Davey
b18183fb9f
Added docs
2018-06-06 23:03:44 +01:00
Richard Davey
fa2e274f8d
New gamepad target config property
2018-06-06 23:03:27 +01:00
Chris Andrew
ab5853f65e
Started documenting the Graphics game object.
...
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Chris Andrew
39ace6c9e9
Finished all BitmapText descriptions, other than GameObject class descriptions.
2018-06-06 17:34:18 +01:00
Chris Andrew
fb33fd045d
Documented DynamicBitmapText display callbacks.
...
Finished up some DynamicBitmapText related descriptions.
Removed the align property from BitmapTextConfig, as it's not used.
2018-06-06 17:26:55 +01:00
Chris Andrew
79c3242c68
Tweaked and filled in a few more BitmapText related descriptions.
2018-06-06 16:58:48 +01:00
Chris Andrew
c9d4ff9f83
Fixed case of @readOnly annotations in BitmapText and DynamicBitmapText.
2018-06-06 16:34:49 +01:00
Chris Andrew
96d750bb60
Documented BitmapText and DynamicBitmapText.
...
Moved BitmapFontData typedefs to the BitmapText class file.
2018-06-06 16:32:58 +01:00
Chris Andrew
25f1dedb74
Started documenting Bitmap Font data structures.
2018-06-06 15:12:12 +01:00
Chris Andrew
a90e78d0a9
Finished UpdateList and RetroFont.Config documentation.
2018-06-06 15:11:40 +01:00