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!
Numpad-Enter
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49228
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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;
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.
