Jump to content

Can't create groups


Arcana33
 Share

Recommended Posts

Previously when people have had an issue with creating control groups, it's been because of the interaction between the game and their keyboard (most if not all cases: they've had a non-qwerty keyboard), but that doesn't seem likely in your case if it's been working previously. Has something changed with your keyboard? (Or have you gotten a new one?)

  • Like 2
Link to comment
Share on other sites

I heard that from a different user too.

The hotkey code didn't change at all in Alpha 22, except this one commit rP19624 / D303. It doesn't look like it could cause a bug like that.

You could checkout the code, remove the two new lines in that patch  and compile the game (see BuildInstructions) to see if it changes the result.

With the below patch, you could also display the actual SDL keycode of any pressed key. It should be 49 if you press the "1" key.

Perhaps we could also consider whether SDL2 is stupid and assumes your number keys to be keypad keys, but I doubt it. https://wiki.libsdl.org/SDL_Keycode

Index: source/ps/Hotkey.cpp
===================================================================
--- source/ps/Hotkey.cpp	(revision 20095)
+++ source/ps/Hotkey.cpp	(working copy)
@@ -161,6 +161,9 @@
 	case SDL_KEYDOWN:
 	case SDL_KEYUP:
 		keycode = (int)ev->ev.key.keysym.sym;
+		LOGWARNING("Pressed SDL keycode is %d", keycode);
+		LOGWARNING("The button 1 is expected to have the value %d", SDLK_1);
+		LOGWARNING("The keypad button 1 is %d", SDLK_KP1);
 		break;
 
 	case SDL_MOUSEBUTTONDOWN:
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...