On Tue, Sep 13, 2016 at 7:56 AM, iono sphere <[email protected]>
wrote:

> I am developing a game using Construct 2 which could export the project to
> Cordova. Then, I could put the game into Crosswalk and play the game on my
> Android. My Construct 2 game supports gamepad, and this is the issue:
>
> While my HTML5 game could respond to gamepad input just fine on Desktop, I
> see that the game does not respond to D-Pad, LT, RT, R3 analog stick on
> Android. I have tested several gamepads on the game and also on
> http://html5gamepad.com/ and I see that all gamepads pretty much got
> identical issue. It seems that the Gamepad API does not fully support
> Android gamepads.
>
> Because of this, I think this is more of HTML5 issue on Android. Is it
> possible to make it so the HTML5 Cordova exported game could access the
> device's gamepad input? From the overview section in Cordova document:
>
>
You're going to have to deal with this issue that I've had on the
backburner for a very long time for Android:

https://issues.apache.org/jira/browse/CB-9005?jql=text%20~%20%22Gamepad%22

I've been meaning to spend more time with my ASUS Gamepad to debug this,
but I haven't had the time to do so because of higher priority issues.  The
catch is that this needs to work with multiple webviews, and this just
can't be a simple fix for vanilla Cordova.


> -----
>
> Use Apache Cordova if you are:
>
> a mobile developer interested in mixing native application components with
> a *WebView* (special browser window) that can access *device-level APIs*,
> or if you want to develop a plugin interface between native and WebView
> components.
>
> -----
>
> "access device-level APIs"? If I understand this correctly, does this mean
> I could somehow make it so that the HTML5 game could read gamepad input
> using Android's device-level APIs instead of the HTML5 Gamepad API? I see
> that a native gamepad app (such as GamepadTest from Play Store) could read
> all of the gamepad's inputs just fine, unlike HTML5 games and
> http://html5gamepad.com .
>
> Because of this, is this actually possible in Cordova? If so, what must be
> done?
>
> Regards,
> Iono
>

Reply via email to