Skip to main content
MJD1981
Inspiring
August 8, 2013
Question

GameInput and MOGA controllers

  • August 8, 2013
  • 2 replies
  • 758 views

Hi,

I'm not sure how many other developers are exploring the opportunity to incorporate MOGA's mobile controllers, but I thought I'd share my initial findings.

Their "Start" button seems to be doubling as the device's "Home" button, and since we cannot "preventDefault" on that I'm not sure how to handle it? It makes for a bad user experience because any attempt to pause immediately exits the game.

SImilarly, the A, B, and Select buttons are recognized as device Back - but fortunately I was able to preventDefault on that.

This is with the larger Xbox-style "MOGA Pro" controller. The smaller "Pocket" version did not seem to be recognized by AIR at all.

I'm happy to have gotten this far with it though, because their guy implied that a dedicated extension would be necessary.

This topic has been closed for replies.

2 replies

zeh
Inspiring
August 8, 2013

This seems to be a similar behavior as the standard (usb) XBox 360 controller on Android. The "Start" button acts as home, and sends the user back to the launcher, with no way to preventDefault.

Interestingly, using the same controller on an OUYA has a different behavior, and "Start" just dispatches Keyboard.MENU.

My spreadsheet has a list of what I've found so far in testing the GameInput, but I haven't bleen able to test MOGA controllers yet (I don't have any).

MJD1981
MJD1981Author
Inspiring
August 9, 2013

Well if you want to document the MOGA Pro, it's exactly the same as OUYA - except L2 and R2 are "AXIS_23" and "AXIS_22" respectively. "BUTTON_108" is Start - but it's irrelevant because you can't touch it.