Qt 3D Input C++ Classes

Qt 3D 输入模块提供了在使用 Qt3D 的应用程序中处理用户输入的类。更多

自 6.8 起,该模块已被弃用。我们强烈建议不要在新代码中使用它。

命名空间

Qt3DInput

包含支持用户输入的类

Qt3DInput::QAbstractActionInput

动作输入和所有聚合动作输入的基类

Qt3DInput::QAbstractAxisInput

QAbstractActionInput 是所有轴输入的基类

Qt3DInput::QAbstractPhysicalDevice

Qt3d 用于与任意输入设备交互的基类

Qt3DInput::QAbstractPhysicalDeviceProxy

Qt3DInput::QAbstractPhysicalDeviceProxy 作为一个实际的 Qt3DInput::QQAbstractPhysicalDevice 设备的代理。

Qt3DInput::QAction

链接一组触发相同事件的 QAbstractActionInput

Qt3DInput::QActionInput

存储用于触发输入事件的设备和按钮

Qt3DInput::QAnalogAxisInput

由模拟输入控制的轴输入 轴值的控制方式与操纵杆等传统模拟输入类似

Qt3DInput::QAxis

存储用于触发输入事件的 QAbstractAxisInputs

Qt3DInput::QAxisAccumulator

处理来自 QAxis 的速度或加速度数据

Qt3DInput::QAxisSetting

存储指定轴列表的设置

Qt3DInput::QButtonAxisInput

由按钮控制的轴输入 轴值由按钮而非操纵杆等传统模拟输入控制

Qt3DInput::QInputAspect

负责创建物理设备和处理相关作业

Qt3DInput::QInputChord

代表一组必须同时触发的 QAbstractActionInput

Qt3DInput::QInputDeviceIntegration

用于定义游戏控制器等新输入法的抽象基类

Qt3DInput::QInputSequence

代表一组必须一个接一个触发的 QAbstractActionInput

Qt3DInput::QInputSettings

持有指向输入事件源对象的指针

Qt3DInput::QKeyEvent

由键盘处理程序发送的事件类型

Qt3DInput::QKeyboardDevice

负责向附加的 QQKeyboardHandler 对象发送键盘事件

Qt3DInput::QKeyboardHandler

提供键盘事件通知

Qt3DInput::QLogicalDevice

允许用户定义一组他们希望在应用程序中使用的操作

Qt3DInput::QMouseDevice

将鼠标事件委托给附加的 MouseHandler 对象

Qt3DInput::QMouseEvent

Qt3DCore::QMouseEvent 包含描述鼠标事件的参数

Qt3DInput::QMouseHandler

当附加到一个 QMouseDevice 实例时,提供了一种获得鼠标事件通知的方法

Qt3DInput::QWheelEvent

包含描述鼠标滚轮事件的参数

详细说明

要使用本模块的类,请在 C++ 文件中添加本指令:

#include <Qt3DInput>

要与相应的 C++ 库链接,请在 qmake 项目文件中添加以下内容:

QT += 3dinput

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.