There is an application, a snake, controlled from the keyboard, with the keys up-down-right-left. I would like to draw 4 buttons and link them to these keys. So with tachksrina could play.
I saw a topic here. How to draw a Button in libgdx?
However, the code that is there is inserted into the Show method. I do not have this, there is a Create method, when inserted into it, Assets in Assets.manager.get underlines in red.
I looked on the Internet - there is generally code to create a joystick on the screen with 150 lines.
Is there really no easy way to draw a button, like in a simple android, something like
ImageButton ibutton = new ImageButton("0, 0, @assets/vpravo.png, keys.down");