Shift+key support feature.

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Shift+key support feature.

Postby I'mSorry » Wed Apr 15, 2020 9:04 pm

Something that I thought would be really useful is to be able to use "SHIFT+any other key" to be mappable in the controls menu (I don't know if this is already a thing and I've looked everywhere). There are some mods out there that have so many mappable options and you just don't have many fingers for all of them, so you usually end up not using 1 or 2 features of the mod. Being able to "SHIFT+left_click" to punch for example, would be really handy in many situations. I feel like this feature, if implemented, would help streamline the control set up and make everything more customizable for everyone. Again, I'm sorry if this is already a thing and I'm just to stupid to find it haha.

Thank you for taking a peek at my idea <33
User avatar
I'mSorry
Be nice and respectful to the devs, they work their butts off so you can play <3
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: Not Listed

Re: Shift+key support feature.

Postby Graf Zahl » Thu Apr 16, 2020 1:09 am

In case you haven't noticed - Shift is a distinct mappable key inside the game, this would badly clash with normal operations, considering that it has a default binding to toggle run mode.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Shift+key support feature.

Postby m8f » Thu Apr 16, 2020 2:12 am

I believe this is doable DIY-style. One will have to make a mod with the following:
1. First, you'd need to define a cvar in CVARINFO: for example
Code: Select allExpand view
user bool shift_pressed = false;
.
2. Create aliases for setting this cvar in KEYCONF:
Code: Select allExpand view
alias +set_shift "shift_pressed 1"
alias -set_shift "shift_pressed 0"

3. Bind Shift key to +set_shift.
4. Then, create aliases for desired commands in KEYCONF, like this:
Code: Select allExpand view
alias shiftable_command "test $shift_pressed command_with_shift command_without_shift
Make as many as you like. Binding keys to actions that are activated by pressing and deactivated by releasing a button may be tricky, though.
5. Bind a desired key to shiftable_command.

Not sure if this really works, but worth a try.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

Re: Shift+key support feature.

Postby I'mSorry » Thu Apr 16, 2020 10:07 pm

Graf Zahl wrote:In case you haven't noticed - Shift is a distinct mappable key inside the game, this would badly clash with normal operations, considering that it has a default binding to toggle run mode.


Oh I didn't know that was shuch an integral part of the game itself. I take it that it can't be easily reworked at all right?
User avatar
I'mSorry
Be nice and respectful to the devs, they work their butts off so you can play <3
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: Not Listed

Re: Shift+key support feature.

Postby I'mSorry » Thu Apr 16, 2020 10:08 pm

m8f wrote:I believe this is doable DIY-style. One will have to make a mod with the following:
1. First, you'd need to define a cvar in CVARINFO: for example
Code: Select allExpand view
user bool shift_pressed = false;
.
2. Create aliases for setting this cvar in KEYCONF:
Code: Select allExpand view
alias +set_shift "shift_pressed 1"
alias -set_shift "shift_pressed 0"

3. Bind Shift key to +set_shift.
4. Then, create aliases for desired commands in KEYCONF, like this:
Code: Select allExpand view
alias shiftable_command "test $shift_pressed command_with_shift command_without_shift
Make as many as you like. Binding keys to actions that are activated by pressing and deactivated by releasing a button may be tricky, though.
5. Bind a desired key to shiftable_command.

Not sure if this really works, but worth a try.


I'll give this a try, thank you m8f
User avatar
I'mSorry
Be nice and respectful to the devs, they work their butts off so you can play <3
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: Not Listed

Re: Shift+key support feature.

Postby Rachael » Thu Apr 16, 2020 10:37 pm

I'mSorry wrote:Oh I didn't know that was shuch an integral part of the game itself. I take it that it can't be easily reworked at all right?

Definitely not easily.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Shift+key support feature.

Postby I'mSorry » Thu Apr 16, 2020 11:40 pm

Rachael wrote:
I'mSorry wrote:Oh I didn't know that was shuch an integral part of the game itself. I take it that it can't be easily reworked at all right?

Definitely not easily.


And there really is no demand for something like my idea, everyone seems pretty well off without a feature like this. This would be like and "unnecessary quality of life" improvement.
User avatar
I'mSorry
Be nice and respectful to the devs, they work their butts off so you can play <3
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: Not Listed


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests