AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.51k stars 145 forks source link

Implement triggering action after pressing combination of controller buttons #298

Open pktiuk opened 2 years ago

pktiuk commented 2 years ago

Discussed in https://github.com/AntiMicroX/antimicrox/discussions/297

Originally posted by **milochadam** November 21, 2021 I would like to use a trigger as a modifier, for example holding it down would allow faster mouse movement or right trigger + left stick up would result in increasing volume (while left stick without right trigger moves mouse cursor around)

Upvote & Fund

Fund with Polar

TristanCottam commented 2 years ago

I'm surprised by the lack of attention to such an unparalleled feature since this issue's opening. Input combination-triggered actions would be akin to Steam's Button Chords, without the exclusivity of the Guide button as a modifier.

Beyond allowing virtually unlimited inputs, layout switching could be streamlined and allow any controller to be used as a universal input device, e.g. by switching between generic, application-specific, and keyboard/mouse-specific layouts.

I imagine this would require a major overhaul of the UI, or more feasibly a dedicated separate one.

Whichever the implementation, even if crude, I think this feature should be a top priority, considering the power of its limitless possible applications.

Despite having never contributed to AntiMicroX, I'd gladly help flesh out and possibly implement this feature.

pktiuk commented 2 years ago

There are many features AmtiMicroX is missing, but my time is limited.
Currently, I am focused on testing and delivering motion sensor support.

I imagine this would require a major overhaul of the UI, or more feasibly a dedicated separate one.

Maybe this task could be linked with this https://github.com/AntiMicroX/antimicrox/issues/284

Feel free to contribute and open your own PR :)

pktiuk commented 2 years ago

Before you start messing with code I recommend checking our short guideline https://github.com/AntiMicroX/antimicrox/wiki/Coding-guidelines

rexendevar commented 1 year ago

I agree, this would easily be the game-changer for me - I already have similar behavior set up using one button to move to a set while holding and another to trigger the action from this new set - but this makes the number of sets a limiting factor as well as the number of buttons I am willing to assign to separate sets. It also means that one of the shortcuts I have, turning off AMX behavior entirely by moving to an empty set, takes two separate nearly-blank sets to implement and requires me to press entirely different buttons to turn it off vs to turn it back on. It is absolutely workable but kind of a pain to attempt to control lots of things without it.

qmzmdqs commented 10 months ago

I also need this functionality. This is the key to simply operating the computer instead of the keyboard

eleriaqueen commented 10 months ago

Oh dang this feature isn't implemented yet. I am trying to set a Playstation Navigation Controller up because I have pain in my right hand when using a mouse and as the PSNC has a joystick I want to map L-Button + Stick Up/Down to scrollwheel.

Edit: I read that there's a way to switch to a different set on press or hold, I'll try to set that up in the meantime.

palmerj commented 10 months ago

Yes please implement this!!!