[Not a bug] Bindings.GetKeysForCommand still returns only 2

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Bindings.GetKeysForCommand still returns only 2

Postby SanyaWaffles » Tue Oct 27, 2020 1:26 am

Damn title limit.

So here's something I discovered... recently I know the keybind limit was increased... but Bindings.GetKeysForCommand still only returns the first two.

Should I just assume that Bindings.GetKeysForCommand will only return the first two keys from hereon out? I honestly could stand to get rid of it in my code as I don't want to account for every single key possible in my code anyhow. I'm more curious than anything, and reporting it in case it's something the devs have overlooked.
User avatar
SanyaWaffles
Wouldn't be an epic gamer if I didn't commit a few war crimes.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
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: Bindings.GetKeysForCommand still returns only 2

Postby Blue Shadow » Tue Oct 27, 2020 2:49 am

SanyaWaffles wrote:recently I know the keybind limit was increased... but Bindings.GetKeysForCommand still only returns the first two.

For that, you want to use GetAllKeysForCommand, instead.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Bindings.GetKeysForCommand still returns only 2

Postby Graf Zahl » Tue Oct 27, 2020 3:14 am

Can't change an existing interface. It may break mods using it. That's why there is a new function. It also requires different parameters.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Bindings.GetKeysForCommand still returns only 2

Postby SanyaWaffles » Tue Oct 27, 2020 3:33 am

I wasn't aware of the new function! Thanks for letting me know of that, I'll update the code.
User avatar
SanyaWaffles
Wouldn't be an epic gamer if I didn't commit a few war crimes.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 3 guests