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

Virtual mouse object always move up-left when grab mouse is set to false #295

Closed
KvaGram opened this issue Nov 28, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@KvaGram
Copy link

KvaGram commented Nov 28, 2019

I'm just starting out with using your engine. My game project is very UI heavy, and require a cursor, so I had a cursor icon added, and disabled the mouse-grab, since there is no need to contain my cursor.

This is how I came over an issue.
When moving my mouse into the game-window, the virtual cursor updates as expected. When moving the mouse in the window, the cursor moves up-left at every update.
This also applied to pressing and releasing mouse-buttons.

The fault seems to lie in mouse.java more specifically in private void setLocation(final MouseEvent e).
Looking at commit-history, it seems this has been an issue for quite a while.

Setting grab mouse to true results in a normal behavior, but the cursor is caged in the window.
This is a workaround, but I want my cursor to be free the leave the game window if it so wants to.
Please fix.

@steffen-wilke steffen-wilke self-assigned this Nov 29, 2019
@steffen-wilke steffen-wilke added this to the v0.4.18-alpha milestone Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants