An axis input controlled by an analog input The axis value is controlled like a traditional analog input such as a joystick. 更多...
头: | #include <Qt3DInput/QAnalogAxisInput> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
实例化: | AnalogAxisInput |
继承: | Qt3DInput::QAbstractAxisInput |
QAnalogAxisInput (Qt3DCore::QNode * parent = nullptr) | |
int | axis () const |
void | setAxis (int axis ) |
void | axisChanged (int axis ) |
Axis for the analog input.
访问函数:
int | axis () const |
void | setAxis (int axis ) |
通知程序信号:
void | axisChanged (int axis ) |
另请参阅 Qt3DInput::QMouseDevice::Axis .
[explicit]
QAnalogAxisInput::
QAnalogAxisInput
(
Qt3DCore::QNode
*
parent
= nullptr)
Constructs a new QAnalogAxisInput instance with parent .