资源简介
Qt中的QtGamepad模块与游戏手柄交互小示例。按下手柄按键时,在页面上显示按键名称和键值。
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Gamepad module
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively you may use this file under the terms of the BSD license
** as follows:
**
** “Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
** LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
** SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
** LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
** DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include
#include
int main(int argc char *argv[])
{
QGuiApplication app(argc argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral(“qrc:///qml/main.qml“)));
return app.exec();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\quickGamepad\
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\quickGamepad\doc\
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\quickGamepad\doc\images\
文件 50662 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\doc\images\qtquickgamepad-example.png
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\quickGamepad\doc\src\
文件 1511 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\doc\src\quickgamepadexample.qdoc
文件 2779 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\main.cpp
目录 0 2018-09-28 23:09 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\
文件 3186 2018-09-27 13:15 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\ButtonImage.qml
文件 4175 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\DPad.qml
文件 3346 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\JoystickViewer.qml
文件 3030 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\LeftThumbstick.qml
文件 3039 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\RightThumbstick.qml
文件 8952 2018-09-28 23:05 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\main.qml
文件 11012 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerBack.png
文件 13764 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerButtonA.png
文件 13480 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerButtonB.png
文件 37297 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerButtonGuide.png
文件 14017 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerButtonX.png
文件 13911 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerButtonY.png
文件 33024 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerDPad.png
文件 22224 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerLeftShoulder.png
文件 28966 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerLeftThumbstick.png
文件 13918 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerLeftTrigger.png
文件 21209 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerRightShoulder.png
文件 29386 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerRightThumbstick.png
文件 14152 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerRightTrigger.png
文件 11271 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml\xboxControllerStart.png
文件 1068 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\qml.qrc
文件 274 2018-01-08 16:55 QtGamepad模块与游戏手柄交互示例\quickGamepad\quickGamepad.pro
............此处省略10个文件信息
相关资源
- Qt 实时读串口数据,并将读到的数据
- QT下数字键盘
- qt5.11.2官方 mqtt库
- 基于Qt5版本的QtService服务库
- qt中绘制曲线
- QTabWidget 改变Tarbar文字方向
-
QT对xm
l增删查改读取,节点自定义, - 基于Linux QT显示zigbee数据
- qt实现状态指示灯——灯亮度可改变
- 基于qt5、ntp协议获取服务器网络时间
- Qt实现ATK-AS608指纹设备录制、检索、识
- QtPropertyBrowserPlugin
- Qt Plugin 程序
- Pyqt打开图片并显示
- Qt托盘实现
- 3D世界的QT+opengl实现
- Qt音频传输
- mySerialPort.rar
- 很全的 Qt qss
- Qt子线程更新数据发到主线程显示.r
- 用Qt5.7实现极坐标绘图
- 一个用Qt来绘制虚拟仪器仪表
- 一个用Qt来绘制频谱图
- Linux上Qt-OpenCV采集摄像头视频并显示
- Qt-detect-Udisk老外写的qt检测U盘
- 基于qt的udp发送文字信息聊天小软件
- QT实现图像处理-傅立叶变换、傅立叶
- Qt小-记事本notepad
- OpenCV利用Qt的GUI显示图片
- SpringBoot+ActiveMq+MQTT实现消息的发送和
评论
共有 条评论