Hi,
I'm having trouble using the BUTTON_DPAD keys.
In my activity I have the following setup:
public boolean onKeyDown(int keyCode, KeyEvent event) {
boolean handled = OuyaController.onKeyDown(keyCode, event);
return handled || super.onKeyDown(keyCode, event);
}
On the Controller side I want to check if the user pressed the DPADF or one of the analoge sticks:
if(c.getButton(OuyaController.BUTTON_DPAD_DOWN) || fYAchsis > 0.5f)
{
...
}
It seems the event is not handled by the ODK. When I step through the onKeyDown method, the boolean "handled" returns false. All other buttons except the DPAD return true.
Any Idea how I can handle this different?
Thanks,
Markus