Qt Gamepad: Adding Gamepad Support To The Toolkit
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.
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.
2 Comments