O'Reilly logo

Libgdx Cross-platform Game Development Cookbook by Alberto Cejas Sánchez, David Saltares Márquez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the controllers API

Controllers play a big role in gaming as they are the kings of home consoles. Interestingly, they are also gaining followers among PC users, who had originally praised the mouse. Lots of people have a desktop connected to their living room television just to play from their couches using controllers. Not to mention that some games, such as sports titles, are simply better experienced with gamepads.

After diving into keyboard, mouse, and touch inputs, it is time to pay some attention to such an important icon of games. Libgdx provides a fully featured controllers API; however, it does not belong to the core framework. Instead, it is distributed as an extension, which means that you will not include it in your project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required