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.25k stars 137 forks source link

AntiMicroX immediately removes the profile when a different app is in focus #936

Open Mapsking opened 3 months ago

Mapsking commented 3 months ago

Is there an existing issue for this?

Current Behavior

Whenever I try to use AntimicroX, it will not keep the profile loaded. I upgraded to v.3.3.3, and also tried 3.3.4, and now 3.4.0, and it does the same thing. I noticed this happening when switching to other programs via ALT+TAB in Windows 10 x64, and also when minimizing the app. It also happens simply if a different app is in focus. When you select keybinds or a saved profile, and then switch to a different app or minimze it, the in use profile switches back to a blank profile, rendering the program useless.

Perhaps there is some setting I have accidentally set that prevents the controller profile actually being used?

The original Antimicro (v2.2.3) works correctly.

Expected Behavior

I set buttons and keys according to my needs in AntiMicroX. I change to the game or application, and use my controller with the keybinds from AntiMicroX.

Steps To Reproduce

  1. Open AntiMicroX (Using v3.4.0).
  2. Select Load .gamecontroller.amgp
  3. Profile is loaded in the dropdown and shows .gamecontroller in the dropdown.
  4. Open another app, such as Calculator.
  5. Profile in dropdown immediately changes to
  6. Alternate method is selecting the profile directly from the dropdown instead of hitting the Load button.
  7. The result is the same.
  8. If a program (like Calculator) is already opened, and you then open a profile via the dropdown in AntiMicroX, and THEN switch to Calculator, the dropdown stays on .gamecontroller UNTIL you switch back to AntiMicroX, in which case it then reverts back to .

Environment

Program Version 3.4.0
Compiled from packaging: GitHub Portable Windows Release
Built Against SDL 2.30.1
Running With SDL 2.30.1
Using Qt 5.15.2
Using Event Handler: SendInput
Host OS: windows Version: 10 Architecture: x86_64

Anything else?

Here is an example video of the problem. The original Antimicro (v2.2.3) works correctly.

https://youtu.be/hp_sLsVjoAg

mikehancoski commented 2 months ago

I have a very similar issue that unless antimicro is focused the inputs do not work

The example above is the same except it does not blank the profile and you can just move to cursor out of the window and the inputs stop working in all apps

and yes I have run it in as an administrator

the issue was fixed by pausing my virus protection

Mapsking commented 1 month ago

I have a very similar issue that unless antimicro is focused the inputs do not work

The example above is the same except it does not blank the profile and you can just move to cursor out of the window and the inputs stop working in all apps

and yes I have run it in as an administrator

the issue was fixed by pausing my virus protection

I have also tried that, it seems to make no difference for me. Thanks for the suggestion.