Numpad-Enter

Bugs that have been investigated and resolved somehow.

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.
Post Reply
Michi
Posts: 76
Joined: Mon Mar 28, 2005 10:09 am

Numpad-Enter

Post 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!
User avatar
Sticky
Posts: 836
Joined: Mon Aug 04, 2003 12:29 pm
Location: Denver, CO How do they get teflon to stick to the pan?

Post 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. :-)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49228
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post 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. ;)
User avatar
Sticky
Posts: 836
Joined: Mon Aug 04, 2003 12:29 pm
Location: Denver, CO How do they get teflon to stick to the pan?

Post 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 :-D. So I'm glad to stand corrected, this will be a nice feature for future releases!
Post Reply

Return to “Closed Bugs [GZDoom]”