Novum / vkQuake

Vulkan Quake port based on QuakeSpasm
GNU General Public License v2.0
1.72k stars 214 forks source link

Make HUD detail setting respect left/right keys #653

Closed Macil closed 1 year ago

Macil commented 1 year ago

Small PR this time. Some of the changes to the HUD detail setting broke support for the left/right keys scrolling through the options in different directions, and this PR fixes that. Pressing left cycles through the options in decreasing HUD elements order and pressing right increases HUD elements, and if you press left then right you will correctly end up back on the same option.

Alternative mathy solution based on my previous one-liner but split up a bit to be slightly more clear: https://github.com/Macil/vkQuake/commit/66c5ad5d37f29f2ce42882286846304acbac34a0. For this few options I don't have a real preference.