Menu button not detected?

I'm trying to recieve menu button events but I never get them. I'm checking for them in the key down function but they never show up.

this is what's in my function:

boolean handled = false;
if ( keyCode == OuyaController.BUTTON_MENU )
{
//NEVER GETS HERE
handled = true;
}

handled = OuyaController.onKeyDown(keyCode, event);
return handled || super.onKeyDown(keyCode, event);

What am I doing wrong here?

Comments

  • 3DModelerMan3DModelerMan Posts: 5Member
    In case anyone else is having the same problem it turns out the event needs to be handled in onKeyUp not onKeyDown.
Sign In or Register to comment.