1

I am trying to find a way to call a custom method from the phones menu button from within a libGDX screen.

Is there a way to do this. i Know that you can catch the touch with

Gdx.input.setCatchMenuKey(true);

but I have not been able to find a way to call a method.

From within the class which extends Screen I would like to have a method such as the following which is called when the phone menu key is pressed:

private void onPhoneMenuKeyTouch(){
    //do something
}
user2145312
  • 896
  • 3
  • 10
  • 33

0 Answers0