Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip keymodifiers #601

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Wip keymodifiers #601

wants to merge 4 commits into from

Conversation

Jbudone
Copy link

@Jbudone Jbudone commented Dec 19, 2022

NOTE: I'm not looking to submit this yet -- still WIP

I'm looking for some early feedback to see if this is something that would get accepted and merged @Novum

- Introduced speedometer similar to JoeQuake, useful for speedrunners
- Updated character draws to allow size specification
- Added helpful calls -- find best matching color in palette; find hud size for offsetting
Fixing clang format issues
@temx
Copy link
Collaborator

temx commented Dec 19, 2022

What is the intended purpose and how does this compare to using alias (alias +shiftdown "bind F2 command_f2_down;bind F3 command_f3_down"; alias -shiftdown "bind F2 command_f2_up;bind F3 command_f3_up"; bind shift "+shiftdown")?

@Jbudone
Copy link
Author

Jbudone commented Dec 20, 2022

Oh interesting! I didn't know of this trick

The purpose is to allow binding with shift (and potentially more). It feels silly this day in age to have an engine that doesn't natively support keybind modifiers

; save/practice spot 1
bind "SHIFT+F1" "save 1"
bind "F1" "load 1"

; save/practice spot 2
bind "SHIFT+F2" "save 2"
bind "F2" "load 2"

If aliasing is already an option then this is merely a less hacky solution, cleaner solution

@Jbudone
Copy link
Author

Jbudone commented Dec 29, 2022

Poke @Novum I left the CI issues until I can get some feedback. I'm interested to hear if this is something we'd like for the engine, or if I'm just wasting time here 😄

I personally think its a fairly simple change, low to no maintenance, and feels like a normal expectation to allow modifiers for controls. @temx mentioned a hacky alternative that works, so this doesn't solve anything new, but others like me may not realize that trick exists, and it feels silly to depend on a hacky trick when we could support it directly in the engine

@Novum
Copy link
Owner

Novum commented Dec 29, 2022

What's the actual use for this? I haven't seen many games support modifiers. It also adds quite a bit of possible new bug surface.

@Jbudone
Copy link
Author

Jbudone commented Dec 29, 2022

temx asked the same thing above (my answer in previous comment). Its convenience without having to depend on the trick he mentioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants