IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

ActionInput QML Type

QML frontend for the Qt3DInput::QActionInput C++ class.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ActionInput QML Type

  • Import Statement: import Qt3D.Input 2.4

  • Since:: Qt 5.7

  • Instantiates:: QActionInput

Detailed Description

Links a physical device and selected buttons on it which can trigger this action.

Each Action input can be triggered by one or many buttons on a source device

 
Sélectionnez
ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A]
}
 
Sélectionnez
ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A,Qt.Key_B]
}

Property Documentation

 

buttons : list<int>

The Buttons that can trigger this Action.

sourceDevice : AbstractPhysicalDevice

The current source device of the ActionInput

Signal Documentation

 

buttonsChanged(const QList<int> &buttons)

This signal is emitted when the buttons associated with the action input is changed.

The corresponding handler is onbuttonsChanged

The corresponding handler is onButtonsChanged.

sourceDeviceChanged()

This signal is emitted when the source device associated with the action input is changed.

The corresponding handler is onSourceDeviceChanged

The corresponding handler is onSourceDeviceChanged.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+