[BUG] [PLAYER] [FIXED] Tab does not work as a hotkey

Started by Nepster, January 23, 2016, 09:04:25 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Nepster

Status: Fixed for the next update.

Nepster

If you put any function on the hotkey Tab, then hitting this key does not trigger the function. I tested this with Pause and Release Mouse.
I am not 100% sure that this isn't caused by some weird trick of my German-type keyboard, though in the key list, there is only one Tab key listed (if using non-hardcoded names). So I would appreciate if someone with a usual English keyboard could check whether the bug occurs there too.

Simon

Mapped select-walker to Tab, that works inside the game, windowed, 3x scale. I use Linux, a nonstandard keyboard layout based on the US standard layout, and further customizations. But US Tab == my Tab.

In the hotkey mapping dialog, when listing all keys (instead of only the bound keys), my Tab appears between Backspace and unnamed key 000A.

-- Simon

Nepster

Tried it and you are correct: Tab = Select Walker works here as well, but Tab = Pause still doesn't.
I have the same Tab location between Backspace and 000A.

Simon

Smart. Now I have tried Tab = pause, and it fails here, too. With Tab = pause and backspace = pause, only backspace pauses the game.

-- Simon

mobius

this might only be an issue on Windows PC's but maybe this is because the Tab button is used for special purposes; Besides the Alt-Tab feature [to change windows] Tab is also used in most programs like web browsers to select different buttons. Using the tab (with other tricks) you can go without a mouse.
everything by me: https://www.lemmingsforums.net/index.php?topic=5982.msg96035#msg96035

"Not knowing how near the truth is, we seek it far away."
-Hakuin Ekaku

"I have seen a heap of trouble in my life, and most of it has never come to pass" - Mark Twain


namida

This is a known issue, although I didn't know it does work for some functions. Because there's different code responsible for checking the held-down keys (which is run every time any key or mouse button is pressed) vs the pushed keys (which is only run when a keypress is detected), I would guess Tab for some reason isn't triggering the OnKeyDown event, yet it's still being detected by the function that checks for held keys.

I'll look into this more later today.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)