QButtonAxisInput Class

class Qt3DInput::QButtonAxisInput

버튼으로 제어되는 축 입력 조이스틱과 같은 기존의 아날로그 입력이 아닌 버튼으로 축 값을 제어합니다. 더 보기...

헤더: #include <Qt3DInput/QButtonAxisInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML에서: ButtonAxisInput
상속합니다: Qt3DInput::QAbstractAxisInput
상태: Deprecated

속성

공용 기능

QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
float acceleration() const
QList<int> buttons() const
float deceleration() const
float scale() const

공용 슬롯

void setAcceleration(float acceleration)
void setButtons(const QList<int> &buttons)
void setDeceleration(float deceleration)
void setScale(float scale)

신호

void accelerationChanged(float acceleration)
void buttonsChanged(const QList<int> &buttons)
void decelerationChanged(float deceleration)
void scaleChanged(float scale)

상세 설명

속성 문서

acceleration : float

버튼을 누르고 있을 때 축 값이 변경되는 속도를 지정합니다.

기능에 액세스합니다:

float acceleration() const
void setAcceleration(float acceleration)

알림 신호:

void accelerationChanged(float acceleration)

buttons : QList<int>

축을 제어하는 버튼을 지정합니다.

기능에 액세스합니다:

QList<int> buttons() const
void setButtons(const QList<int> &buttons)

알림 신호:

void buttonsChanged(const QList<int> &buttons)

deceleration : float

버튼에서 손을 뗄 때 축 값이 정상으로 돌아오는 속도를 지정합니다.

함수에 액세스합니다:

float deceleration() const
void setDeceleration(float deceleration)

알림 신호:

void decelerationChanged(float deceleration)

scale : float

축 출력 값의 배율을 지정합니다. 기본적으로 배율이 적용되지 않으므로 기본값은 1입니다.

기능에 액세스합니다:

float scale() const
void setScale(float scale)

알림 신호:

void scaleChanged(float scale)

멤버 함수 문서

[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)

parent 를 사용하여 새 QButtonAxisInput 인스턴스를 생성합니다.

© 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.