forums.PPSSPP.org
Help: Map Joystick buttons - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: Help: Map Joystick buttons (/showthread.php?tid=1863)



Help: Map Joystick buttons - GuilhermeGS2 - 03-21-2013 04:38 PM

I am using a USB Joystick on my phone, I managed to map almost all but the circle button. Someone who uses Joystick can help me? Tongue


RE: Help: Map Joystick buttons - srdjan1995 - 03-21-2013 05:14 PM

Can u tell me how to use Joystic on phone? Big Grin I have an USB Joystic, but i don't know how to use it with phone. I use it with windows version of PPSSPP.


RE: Help: Map Joystick buttons - livisor - 03-21-2013 05:25 PM

This problem will continue until an in-game mapping solution is added,there should be frameworks already made that just need implementation around the web..


RE: Help: Map Joystick buttons - GuilhermeGS2 - 03-21-2013 05:27 PM

What is your device, and it depends on the ROM you use. I have a Galaxy S2, and only works on ROM 4.0.4 (Official), I had to install. I also use a cable OTG application and USB / BT Joystick Center. Just open the app, connect and Joytick precionar "search", then he will look over, in my appeared more or less like this: Generic USB Joystick, then I squeeze up and configure the buttons.


RE: Help: Map Joystick buttons - srdjan1995 - 03-21-2013 07:31 PM

I have an LG L3... I doubt it support USB Joystic. Also it have it official rom, not custom one.


RE: Help: Map Joystick buttons - GuilhermeGS2 - 03-21-2013 07:34 PM

(03-21-2013 07:31 PM)srdjan1995 Wrote:  I have an LG L3... I doubt it support USB Joystic. Also it have it official rom, not custom one.

Maybe someone has made a custom rom with joystick support.


RE: Help: Map Joystick buttons - Poo-Tang - 03-21-2013 09:20 PM

(03-21-2013 07:31 PM)srdjan1995 Wrote:  I have an LG L3... I doubt it support USB Joystic. Also it have it official rom, not custom one.

If your device's FW/ROM is Android 3.1 or above it will have Native HID (Controller/Mouse) support as it is built into Google's code base. But as PPSSPP has no analog support on Android so this will be unhelpful at this time.

If your not on 3.1 or above you can still map hardware keys to Androids soft Keyboard (PPSSPP is only active on Xperia Play due to this) or you can emulate full touch screen inputs via Touch profiles on the SIXAXIS or GameKeyBoard applications.

(03-21-2013 04:38 PM)GuilhermeGS2 Wrote:  I am using a USB Joystick on my phone, I managed to map almost all but the circle button. Someone who uses Joystick can help me? Tongue

PPSSPP is mapped to the Circle button on an Xperia Play which is (Keycode_Button_B and Keycode_Back together) it appears the correct input for this is (ALT + KEYCODE_BACK). Sony coded it like this in their own framework. But not sure this mapping will work for apps like SIXAXIS/GameKeyBoard/JoystickCenter6 as you can only select one or another. If you can see in the chart (On link below) Back and Circle are the same keycode.

you can get the full keycodes from Sonys "How to develop gaming apps using the Xperia™ PLAY gamepad" page here below >

http://developer.sonymobile.com/2011/02/13/xperia-play-game-keys/

To solve this Henrik could just add (Keycode_Button_B as Circle) and (Keycode_Button_A as Cross) to PPSSPP config along side the Xperia Play Mappings (Should not conflict) and Native Controller support (HID) would be included (Minus the Analog stick) as default.


RE: Help: Map Joystick buttons - GuilhermeGS2 - 03-21-2013 11:24 PM

I started tinkering and found it. But anyway, thanks. Smile


RE: Help: Map Joystick buttons - GuilhermeGS2 - 03-25-2013 10:42 PM

Closed