Numpad-Enter

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Numpad-Enter

by Sticky » Fri Jul 15, 2005 12:06 pm

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!

by Graf Zahl » Fri Jul 15, 2005 8:54 am

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. ;)

by Sticky » Fri Jul 15, 2005 8:25 am

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. :-)

Numpad-Enter

by Michi » Fri Jul 15, 2005 7:40 am

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!

Top