Closed NQNStudios closed 2 weeks ago
I went and found the permission thing, enabled it, and the arrow keys are still bonkers.
I think I already hit the permission thing like last year and refactored arrow handling to not rely on it…
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.
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):
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:
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.