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.26k stars 138 forks source link

Ability to Set "Set" from Command Line? #775

Open SarahSzabo opened 1 year ago

SarahSzabo commented 1 year ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe.

After reading the manual page, I didn't see any way to set the "set" of any profile from the command line.

This would be a great feature for me as I wish to have a series of bash scrips that change the sets of other controllers.

I have two flight sticks and plan on adding foot pedals over the summer, so the ability to change sets of (for example) the foot pedals dynamically by executing a script from one of the flight sticks would be awesome.

It would also allow for programs behind the scenes to do cool things like constantly look at applicaiton context and set the set dynamically. There is a lot of potential for future use here.

Describe the solution you'd like

Assumes AMX already running:

antimicrox select-controller 1 select-set 1

This selects controller 1's currently loaded profile (based on index number from SDL as printed by AMX) and loads the first set.

Describe alternatives you've considered

No response

Additional context

No response


Upvote & Fund

Fund with Polar

pktiuk commented 1 year ago

This seems to be a good idea.
And it may be not that difficult to implement.

SarahSzabo commented 1 year ago

Probably not, I would have done it myself honestly if I knew C based langs. I'm pretty good with Java ^^

Honestly, this is one feature that I would LOVE to use almost immediatly, but will have to wait for the next release. I'm using my left flight stick for additional buttons and a bunch of functions, my right for mouse pointing, and I plan on adding foot pedals over the summer break.

My plan is to kind of make it like an IME using a bunch of shell scripts that synchronously change the sets of the profiles that I use, but no such feature exists at the moment lol :)