Skip to main content
Inspiring
November 2, 2013
Answered

GameInput buttonA exits game on OUYA

  • November 2, 2013
  • 1 reply
  • 508 views

Hi!

On the OUYA, the "A" button is also the "Android back button". When I press that button, it exists the Adobe Air app.

I listen to the onChange event for the GameInputController for the a-button and even do this:

protected function onChange(event:Event):void

{

     event.preventDefault();

     event.stopImmediatePropagation();

}

to try to "preventDefault()" and prevent the back button from going back.

No luck however.

This topic has been closed for replies.
Correct answer Nielzz

Solution:

Listen for the Keyboard.back keyboardEvent and do event.preventDefault()

1 reply

NielzzAuthorCorrect answer
Inspiring
November 2, 2013

Solution:

Listen for the Keyboard.back keyboardEvent and do event.preventDefault()