New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gamepad is not updateing since v3.16.1 #4414
Comments
I've encountered the same issue on Linux, had to roll back to v3.15.1 for my project. |
WORKAROUND The easiest workaround (while not efficient) is to update the input plugin every frame. Somewhere near the top of your scene's update function just add this: I can confirm that this issues also exists on MacOS 10.14.4 under chrome 73 (ultimately, the bug seems to be universal). I'm going to investigate a bit for a workaround/fix. UPDATE
I think this is the root of the problem. The update() of the gamepadPlugin seems to be setup to call whenever the inputManager's update calls so you can artificially force it to update by, say, moving the mouse around. If you do this (move the mouse around over the game window) while you press buttons on the game pad then the gamepads get refreshed and all the button and axis values work as expected. Since |
adding |
@Olliebrown Thanks! I can confirm your workaround is successful. Adding On macOS 10.13.5 -- Firefox 66.0.2 |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
Version
Description
Since version 3.16.1 the gamepad is not updated correctly. It only updates, if the mouse is moved. All phaser examples for the gamepad do no longer work correctly, if a version above 3.15.1 is selected.
Example Test Code
Here is a codepen with the phaser gamepad debug example, which uses the latest phaser version: https://codepen.io/anon/pen/momMWR
Additional Information
The text was updated successfully, but these errors were encountered: