WagicProject / wagic

Wagic the Homebrew
Other
347 stars 76 forks source link

Controller support on QT #1058

Closed kelvinhammond closed 3 years ago

kelvinhammond commented 3 years ago

Hello,

I have a joypad / controller. Is there a way to add support for controllers? I'm unable to bind the joystick to keypads on QT.

Vitty85 commented 3 years ago

I found this:

https://linuxhint.com/gamepad_mapping_apps_linux/

Basically you map your joypad as a keyboard and so it works for Wagic basic inputs (i tried on my Ubuntu and it was OK).

Let me know, see you.

kelvinhammond commented 3 years ago

How do you do this on windows though?

Vitty85 commented 3 years ago

You can do following this:

https://www.addictivetips.com/windows-tips/map-controller-to-keyboard/

Basically you have to do these steps:

  1. Download and install AntiMicro from Github (https://github.com/AntiMicro/antimicro).
  2. Connect your controller to your system and open AntiMicro.
  3. Press a button or move a joystick on the controller. It will be highlighted on the app’s interface.
  4. Click the highlighted button on the app’s interface.
  5. Select a mouse or keyboard control to assign to it.
  6. Repeat for all controls.
  7. Save the profile.
  8. Minimize AntiMicro to the system tray, and play your game.

Let me know, see you.

kelvinhammond commented 2 years ago

@Vitty85 I tried this with antimicro, I'm not sure what the correct mappings should be if I'm using a controller. Do you know which keyboard keys would map to which psp buttons?

Vitty85 commented 2 years ago

@Vitty85 I tried this with antimicro, I'm not sure what the correct mappings should be if I'm using a controller. Do you know which keyboard keys would map to which psp buttons?

Hi,

Generally you can always check the button on key mapping in game settings, you can easily understand which key you should map and choose the mapping you prefer. By the way, to make it similar to PSP controls i recommend to use this mapping:

Q->L1 E->R1 I->Triangle K->X J->Square Space->Circle Esc/Return->Start Left/Right Ctrl.->Select Up->Up Down->Down Left->Left Right->Right

I hope it helps, see you.

kelvinhammond commented 2 years ago

Thanks, I got it to work, here is the antimicro file I used wagic.gamecontroller.amgp.txt