Qt3DInput::QButtonAxisInput Class
class Qt3DInput::QButtonAxisInputUna entrada de eje controlada mediante botones. El valor del eje se controla mediante botones, en lugar de mediante una entrada analógica tradicional, como un joystick. Más información...
| Encabezado: | #include <Qt3DInput/QButtonAxisInput> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| En QML: | ButtonAxisInput |
| Heredado de: | Qt3DInput::QAbstractAxisInput |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Propiedades
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
Funciones públicas
| QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
| float | acceleration() const |
| QList<int> | buttons() const |
| float | deceleration() const |
| float | scale() const |
Ranuras públicas
| void | setAcceleration(float acceleration) |
| void | setButtons(const QList<int> &buttons) |
| void | setDeceleration(float deceleration) |
| void | setScale(float scale) |
Señales
| void | accelerationChanged(float acceleration) |
| void | buttonsChanged(const QList<int> &buttons) |
| void | decelerationChanged(float deceleration) |
| void | scaleChanged(float scale) |
Documentación de propiedades
acceleration : float
Especifica la velocidad a la que cambia el valor del eje cuando se mantiene pulsado un botón
Funciones de acceso:
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
Señal de notificación:
| void | accelerationChanged(float acceleration) |
buttons : QList<int>
Especifica los botones que controlan el eje
Funciones de acceso:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Señal de notificación:
| void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
Especifica la velocidad a la que el valor del eje vuelve a la normalidad al soltar un botón
Funciones de acceso:
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
Señal de notificación:
| void | decelerationChanged(float deceleration) |
scale : float
Especifica cómo se escala el valor de salida del eje. Por defecto no se aplica ningún escalado, por lo que el valor predeterminado es 1.
Funciones de acceso:
| float | scale() const |
| void | setScale(float scale) |
Señal de notificador:
| void | scaleChanged(float scale) |
Documentación de funciones de miembro
[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Crea una nueva instancia de QButtonAxisInput con ` parent`.
© 2026 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.