Skip to content
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

Controller cycling #22

Open
MrSchism opened this issue Nov 8, 2015 · 1 comment
Open

Controller cycling #22

MrSchism opened this issue Nov 8, 2015 · 1 comment

Comments

@MrSchism
Copy link

MrSchism commented Nov 8, 2015

When running the game from the terminal in linux, it goes into a loop.

Trying to update unconnected Xbox 360 Controller (0)
Trying to update unconnected Xbox 360 Controller (1)

It just cycles between 0 and 1.

The following code is where the error is defined

@MrSchism
Copy link
Author

What appears to be happening is that it's trying to update the controller state, but does so constantly and unnecessarily if there is no controller. It may be worth checking to see if the controller is connected and not spit the error until one is connected. It could probably query once every three or five seconds to reduce CPU usage and possibly improve performance.

Relevant link:
http://docs.yoyogames.com/source/dadiospice/002_reference/mouse,%20keyboard%20and%20other%20controls/gamepad%20input/gamepad_is_connected.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant