ActionInput QML Type

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

Import Statement: import Qt3D.Input 2.0
Since: Qt 5.7
Instantiates: QActionInput

Properties

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


  ActionInput {
    sourceDevice: keyboardSourceDevice
    buttons: [Qt.Key_A]
  }


  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.