Page 1 of 1
Numpad-Enter
Posted: Fri Jul 15, 2005 7:40 am
by Michi
I can't bind anything to this key. It always does the same as the Enter key on the main keyboard - and worse: If I press it while holding Alt it switches to windowed display.
This key should be bindable like everything else and the automatic window toggle should be optional. With a normal setup where you use Alt to strafe it is impossible to use this key at all!
Posted: Fri Jul 15, 2005 8:25 am
by Sticky
Yes, this has been discussed before. It is unfortunate that they're not seen as different keys, but it's been this way for a long long time. Rather than a bug, this would have been better in "Feature Suggestions" As there is no kpenter key, the fact that it doesn't work isn't a bug.

Posted: Fri Jul 15, 2005 8:54 am
by Graf Zahl
Sticky wrote:As there is no kpenter key, the fact that it doesn't work isn't a bug.

Actually, it is possible to check it separately. ZDoom uses explicit coding to map the 2 enter keys together. So it can be changed.
Here's the code responsible:
Code: Select all
// "Merge" multiple keys that are considered to be the same.
// Also clear out the alternate versions after merging.
toState[DIK_RETURN] |= toState[DIK_NUMPADENTER];
toState[DIK_LMENU] |= toState[DIK_RMENU];
toState[DIK_LCONTROL] |= toState[DIK_RCONTROL];
toState[DIK_LSHIFT] |= toState[DIK_RSHIFT];
toState[DIK_NUMPADENTER] = 0;
toState[DIK_RMENU] = 0;
toState[DIK_RCONTROL] = 0;
toState[DIK_RSHIFT] = 0;
It'd be trivial to make this optional controlled by a CVAR. (And looking at this, I'd really appreciate if I could separate the 2 shift keys. I never thought it was possible but apparently it is.
The fullscreen toggle is equally trivial. Just make this code optional and controlled by a CVAR as well:
Code: Select all
case WM_SYSCHAR:
... (deleted unrelated code)
// The following code is responsible for toggling between fullscreen and window.
if (wParam == '\r')
{
ToggleFullscreen = !ToggleFullscreen;
}
break;
Since this is so simple I think I add it to the next unofficial build.

Posted: Fri Jul 15, 2005 12:06 pm
by Sticky
Graf Zahl wrote: I never thought it was possible but apparently it is.
My opinion was based entirely on what you've said in earlier threads

. So I'm glad to stand corrected, this will be a nice feature for future releases!