Gamepad support for Android devices.

Discussion and feedback on Construct 2

Post » Wed Dec 16, 2015 11:16 am

The gamepad plugin (https://www.scirra.com/manual/143/gamepad) is awesome. Is it possible to extend it's support to new gamepads?

I'm explaining what I mean:
I'd like to port my game Mooch (http://store.steampowered.com/app/398460) to PlayJam console (Android 4.4) - http://www.playjam.com/.
I'm having issues with supporting PlayJam controller. Most buttons works fine but some of them doesn’t (marked red):
Image
D-pad, right analog stick and both shoulder buttons doesn’t react on players input.

PlayJam Team provided me key mapping documentation: http://playjam.games.network/develop/guides/controller
As far I see gamepad plugin is missing support for those methods:
- MotionEvent.AXIS_HAT_X,
- MotionEvent.AXIS_HAT_Y,
- MotionEvent.AXIS_Z,
- MotionEvent.AXIS_RZ.

Is it possible to support them?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Wed Dec 16, 2015 1:36 pm

It's up to the OS and browser engine to support gamepads. Last I checked a wired Xbox 360 controller worked fine with an Android 4.4 phone. If a particular gamepad doesn't work, it's probably because the OS needs a driver for it.
Scirra Founder
B
403
S
238
G
89
Posts: 24,653
Reputation: 196,143


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests