libgdx - Using a joystick or gamepad to traverse through scene2d menu -


i'm wondering how can add support traverse scene2d menus (tables) libgdx using joystick, gamepad or keyboard keys.

does know how should done?

you need bring concept of focus in menu, rest easy. (just old video games)

  1. maintain focus variable in menu.
  2. draw menu-item in focus differently (maybe additional border).
  3. handle key events update value of focus.

hope helps.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -