A bug occurs when using Mac F3 exposè

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

A bug occurs when using Mac F3 exposè

Post by sheamkennedy »

I noticed a bug occurs when running Game and pressing F3 on my Macbook which performs exposè (spreads out all my running windows and lets me navigate between them).

The bug occurs if I am pressing an arrow key while I click F3 on my laptop. My hero will continue to move in the direction I pushed during expose and after returning to the Game window. Essentially Game thinks I'm still holding down that key. I also noticed this bug persists even once I escape the game and reselect that game. The only way to resolve the issue if for me to close down Game and reopen it entirely.

This has become a small problem since I'm using exposè often to speedily navigating between Custom, Game, the forums, dictionary, etc... and I may accidentally be still pressing a key when I go to click F3 for exposè.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

What happens if you re-focus the game window, the press and release the arrow key?

Having a key stuck when you go to expose mode actually does not sound unusual at all, but not being able to get the key unstuck when you re-focus the window does sound like a serious problem.
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Also, is F3 expose a standard keyboard shortcut on macbooks?

F3 doesn't do anything like that on my Mac desktop computer.

The shortcut for Expose for me is F13 (but I guess not all Macs have that key?)
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

@Bob: Press and release of the arrow key or any other key does not unstick the key after refocusing which is the issue.

I think most if not all Mac laptop models have F3 as the designated exposè key. Yeah my macbook only has F1-F12 keys.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

It might be possible to understand this by looking at g_debug.txt output while running with the --input-debug commandline option to ohrrpgce-game. If you don't know how to pass that, the easiest way may be to place a file named ohrrpgce_arguments.txt next to OHRRPGCE-Game.app containing one line: --input-debug.
Then trigger the bug while avoiding pressing any other keys or touching the mouse, to keep the debug output minimal.

But this is probably an SDL bug with not much we can do about it. Hopefully fixed in SDL2, but gfx_sdl2 isn't ready for testing on Mac yet.
Post Reply