Qt Gamepad: Adding Gamepad Support To The Toolkit

Written by Michael Larabel in Qt on 14 May 2015 at 09:06 AM EDT. 2 Comments
QT
One of the newest modules added to Qt Labs is QtGamepad, a module inspired in part by the W3's HTML5 Gamepad API.

Qt Gamepad is inspired by the HTML5 Gamepad API while styled with a Qt-like API. Qt Gamepad offers C++ and Qt Quick APIs and there's a plug-in architecture for providing different backends to interface with the actual gamepads.

Current backends for supporting different gamepads is X Input on Windows, evdev for Linux device support, and an SDL2 back-end for any platform supported by SDL2. There's also a OS X / iOS backend in development. Qt GamePad allows for getting events from gamepad devices, such as button and axis events, along with querying the input state and providing key binding support in the Qt5 world.

Andy Nichols of The Qt Company has been the one hacking on the Qt Gamepad in his spare time. Those wanting to learn more about Qt Gamepad can read this mailing list announcement while the module is currently hosted under the Qt Labs area.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week