Page 1 of 1

Quick keys issue

Posted: Thu Nov 22, 2018 12:22 am
by trpted
REF as it relates to Bzflag = https://wiki.bzflag.org/Quick_keys

#1 Currently if I press

a) ALT+F1, it is like I pressed the Start Button/Kicker.

b) ALT+F2, up comes the run command.

For those two REF based upon my OS, see http://www.comfsm.fm/~dleeling/tech/lub ... tcuts.html

#2 Is it possible to change the quick keys for Bzflag? To be clear of what I mean for example instead of ALT+F1 - like ALT+Q

Thank you

Re: Quick keys issue

Posted: Thu Nov 22, 2018 2:16 am
by Zehra
To answer your second question.
It probably would require a client modification, since if I'm not mistaken, the 'Quick Keys' are hard coded.
(Not the message itself, but the keys themselves.)

-Zehra

Re: Quick keys issue

Posted: Thu Nov 22, 2018 2:18 am
by blast
Yes, those seem to be hard coded. You can change the behavior if you'd be okay with modifying the code and compiling. The actual handling of quick keys is in the doKeyPlaying function in playing.cxx and the menu text is defined in QuickKeysMenu.cxx. A simple change might just be changing the code to use Shift instead of Alt and then remapping your chat tab keys to something else.

Re: Quick keys issue

Posted: Sat Nov 24, 2018 2:56 pm
by trpted
Yes, those seem to be hard coded. You can change the behavior if you'd be okay with modifying the code and compiling. The actual handling of quick keys is in the doKeyPlaying function in playing.cxx and the menu text is defined in QuickKeysMenu.cxx. A simple change might just be changing the code to use Shift instead of Alt and then remapping your chat tab keys to something else.
#1 In the future will it be possible to change it without changing the source code and compiling?

#2 In the meantime as I wait for that to happen (the above question), I request more guidance then that.

An example of when I was given guidance, while not the best in the world (source code vs config file), it will have to do.

Re: Quick keys issue

Posted: Sat Nov 24, 2018 5:53 pm
by blast
I think you could literally just change AltKey to ShiftKey in the highlighted code I linked to in playing.cxx.