QAnalogAxisInput Class

class Qt3DInput ::QAnalogAxisInput

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 COMPONENTS 3dinput REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Since: Qt 5.7
实例化: AnalogAxisInput
继承: Qt3DInput::QAbstractAxisInput

特性

公共函数

  QAnalogAxisInput (Qt3DCore::QNode * parent = nullptr)
int axis () const

公共槽

void setAxis (int axis )

信号

void axisChanged (int axis )

详细描述

特性文档编制

axis : int

Axis for the analog input.

访问函数:

int axis () const
void setAxis (int axis )

通知程序信号:

void axisChanged (int axis )

另请参阅 Qt3DInput::QMouseDevice::Axis .

成员函数文档编制

QAnalogAxisInput:: QAnalogAxisInput ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QAnalogAxisInput instance with parent .