The Qt Gamepad module provides QML types that can be used to access the state of gamepad hardware that may be available on a system.
可以使用以下 import 語句將 QML 類型導入應用程序:
import QtGamepad 1.12
要鏈接到模塊,添加此行到
qmake
.pro
文件:
QT += gamepad
有關在應用程序中使用這些類型的更多信息,見 Qt Gamepad 文檔編製。
| Gamepad | A gamepad device connected to a system |
| GamepadManager | Queries attached gamepads and related events |