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

First touch moves character even if on right of screen. #1

Open
DustStock opened this issue Sep 1, 2024 · 3 comments
Open

First touch moves character even if on right of screen. #1

DustStock opened this issue Sep 1, 2024 · 3 comments

Comments

@DustStock
Copy link

Immediately after starting, pressing and holding any location on right of screen moves as if interacting with left control.

@DustStock
Copy link
Author

DustStock commented Sep 1, 2024

changing line #81 in the joystick script to this fixes the issue:

if event.index == joystick_finger_index and event.position.x < window_width / 2:

Edit: this seems to cause some additional issues. see better fix below.

@DustStock
Copy link
Author

DustStock commented Sep 1, 2024

The previous fix seems to be less than ideal causing some other issues. I believe the following is a better fix:

Changed
joystick_finger_index = 0
to
joystick_finger_index = null (line 13)

@KeiMuriKoe
Copy link

can confirm, also saw this bug

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

2 participants