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

Investigate multi-monitor issues #126

Open
ChrisNeedham24 opened this issue Mar 24, 2023 · 1 comment
Open

Investigate multi-monitor issues #126

ChrisNeedham24 opened this issue Mar 24, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers infrastructure What makes the system tick

Comments

@ChrisNeedham24
Copy link
Owner

I have noticed that when playing the game on a second monitor, clicking does not work. It would be worth looking into whether this is just a limitation of the pyxel library, or whether there's something we can do about it.

I had a cursory look at this and it seems like the pyxel.mouse_x value is wildly negative, like -400. The pyxel.mouse_y value seemed to be reasonable, though.

Could we detect whether multiple monitors are in use or if the game is running on a second monitor? Could we modify the mouse x value somehow?

@ChrisNeedham24 ChrisNeedham24 added bug Something isn't working good first issue Good for newcomers infrastructure What makes the system tick labels Mar 24, 2023
@ChrisNeedham24
Copy link
Owner Author

An easy way of doing this could potentially simply be detecting if the pyxel.mouse_x value is negative and displaying a warning instructing the user to play on their primary monitor. Of course, ideally we fix the bug, assuming it's not just a limitation of pyxel itself.

@ChrisNeedham24 ChrisNeedham24 added the hacktoberfest Issues that are appropriate for new contributors label Sep 30, 2023
@ChrisNeedham24 ChrisNeedham24 removed the hacktoberfest Issues that are appropriate for new contributors label Nov 1, 2023
@ChrisNeedham24 ChrisNeedham24 added the hacktoberfest Issues that are appropriate for new contributors label Sep 30, 2024
@ChrisNeedham24 ChrisNeedham24 removed the hacktoberfest Issues that are appropriate for new contributors label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers infrastructure What makes the system tick
Projects
None yet
Development

No branches or pull requests

1 participant