dsolonenko / titanius-launcher

Minimalistic, controller-first retro game launcher for Android
https://titanius.app/
MIT License
57 stars 1 forks source link

Can i change the control buttons? (it is now.A B X Start etc) #21

Open SosimpleGr opened 7 months ago

SosimpleGr commented 7 months ago

Hi. Thanks for the best android fronteded ever!. I was using an android gamepad and i could control the fronteded excellent. So i decided to create a mini cabinet using an android tablet. I bought an arcade like kit stick to find out that the buttons are recognized as button1... button2. etc. So i couldn't control titanius . In emulators there isn't any problem as i can mapp every button to do whatever i wanted. I found a solution by using button mapper app and setting to the buttons those codes ,i found out after hours of searching: KEYCODE_BUTTON_A = 96 KEYCODE_BUTTON_B = 97 KEYCODE_BUTTON_C = 98 KEYCODE_BUTTON_X = 99 KEYCODE_BUTTON_Y = 100 KEYCODE_BUTTON_L1 = 102 KEYCODE_BUTTON_R1 = 103 KEYCODE_BUTTON_L2 = 104 KEYCODE_BUTTON_R2 = 105 KEYCODE_BUTTON_START = 108 KEYCODE_BUTTON_SELECT = 109 KEYCODE_BUTTON_MODE = 110 KEYCODE_ESCAPE = 111

By those i can emulate a gamepad recognized by titanius , so i can control it. But it isn't the best solution I think, and I don't know what problems i could have.

Is there any way to mapp the buttons inside titanius somehow, without the need to use an external mapping software?

Thanks.

PS: A discord channel could be helpful.

SosimpleGr commented 7 months ago

Something important to add: By doing the above, emulators of retroarch wasn't working well. I couldn't map the buttons to work correctly. But there is a solution. In button mapper app, there is a choice, your mapping NOT to apply to some apps. You select retroarch, so when you run retroarch basically button mqpper doesn't work. So you can map in retroarch the buttons which now working correctly. When you go back to Titanius ,automatically button mapper works again and you can control it. With this workaround everything is working!