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

Arrow keys movement is unpredictable on Silicon macOS 14.5 #405

Closed
NQNStudios opened this issue Aug 13, 2024 · 4 comments
Closed

Arrow keys movement is unpredictable on Silicon macOS 14.5 #405

NQNStudios opened this issue Aug 13, 2024 · 4 comments
Labels
bug game Affects the game, as opposed to the editors mac Specific to Mac builds

Comments

@NQNStudios
Copy link
Collaborator

NQNStudios commented Aug 13, 2024

Something truly bizarre is happening with BoE keyboard input on my newer Mac. I can't tell if it's affecting letter hotkeys (g for get works fine) but arrow key movement is definitely very broken.

Of interest is this console output:

0x10000088c: TCC deny IOHIDDeviceOpen
0x10000088c: TCC deny IOHIDDeviceOpen
We got a keyboard without any keys.

I don't know if the first 2 lines are related to the 3rd one, but the 3rd one comes from sfml and I think it's because newer MacOS requires apps to ask for permission to listen to the keyboard: https://en.sfml-dev.org/forums/index.php?topic=27734.0

Maybe I accidentally didn't give BoE this keyboard permission the first time I launched it.

Anyway, the actual problem is that most of the arrow keys do nothing, and the ones that do something, will actually change which direction they control after repeated use.

@NQNStudios
Copy link
Collaborator Author

I went and found the permission thing, enabled it, and the arrow keys are still bonkers.

@CelticMinstrel
Copy link
Member

I think I already hit the permission thing like last year and refactored arrow handling to not rely on it…

@CelticMinstrel
Copy link
Member

CelticMinstrel commented Aug 13, 2024

Oh, I was thinking of #291, which is about modifier keys, not arrows… but the change does touch arrows, so I think my thought was correct.

@NQNStudios
Copy link
Collaborator Author

NQNStudios commented Aug 22, 2024

To recap conversation in the IRC: This bug is happening because SFML is not sending key release events for the arrow keys on MacOS. Wild bug, but this is an idea to work around it, which I am thinking will also improve diagonal movement via the arrow keys on the other OSes (#225):

image
image

NQNStudios added a commit to NQNStudios/cboe that referenced this issue Aug 23, 2024
@CelticMinstrel CelticMinstrel added bug mac Specific to Mac builds game Affects the game, as opposed to the editors labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug game Affects the game, as opposed to the editors mac Specific to Mac builds
Projects
None yet
Development

No branches or pull requests

2 participants