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

Different buttons for input with modifier keys #73

Open
jozefmutis opened this issue Mar 24, 2019 · 5 comments
Open

Different buttons for input with modifier keys #73

jozefmutis opened this issue Mar 24, 2019 · 5 comments
Labels
v5 Intended for version five release

Comments

@jozefmutis
Copy link

What it is
A two separate buttons would exist, and each light up individually depending on what modifier is used.

Example
Should there be a button for Left Mouse Click, and a button for Shift + Left Mouse Click. One button would light up only if LMC was pressed by itself, and another button would light up if LMC was pressed in combination with SHIFT modifier

How it can work
A normal Left Mouse Button icon would light up only if it detects that SHIFT key is not pressed. This could be achieved by adding blacklist keys as a config in options.ini. A button will not light up if it detects any of the inputs defined as blacklisted are currently pressed.

A Shift LMC would light up only if it detects that SHIFT key AND Left Mouse Click are pressed concurrently. This can be achieved by checking for multiple key inputs before allowing button to light up.

Additional context
This would of course not impact the button for SHIFT key itself, as it would light up regardless whether there was a follow-up LMC click registered.

Of course this could be applied to inputs other than Left Mouse Click, as configurable in options.ini.

@univrsal
Copy link
Owner

So basically you want an overlay element that handles input combinations? Like an element that only changed from unpressed to pressed if a key combination is pressed (e.g. Ctr+V or in your example Shift + Left Mouse)

I already got this suggestion a while back but didn't consider it since it would've been more complicated, but I think since I made a lot of changes it shouldn't be too difficult anymore.

@jozefmutis
Copy link
Author

jozefmutis commented Mar 24, 2019

Yes, exactly. Along with this, I believe you could also add function so that some buttons work toggle only if no key modifiers are used (e.g. plain V, and would not light up if Ctr+V was pressed)

I feel this could easily be achieved via blacklist and similarly, key combos by checking for multiple inputs. But if you have a solution of your own, please don't be limited by my imagination.

@univrsal univrsal added the v5 Intended for version five release label Apr 17, 2019
@GGelatin
Copy link

Was wondering if there's an update on this issue?
I tried to create my own preset but was unable to figure out a way to create combination keycodes.

@univrsal
Copy link
Owner

No, there's still some other things that need to be addressed first

@drdecomposing
Copy link

Came looking for something like this — any updates on this issue? This kind of feature would be enormously helpful to folks who use this plugin with alternative/non-standard controllers.

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

No branches or pull requests

4 participants