diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-11-27 14:35:56 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-11-28 08:15:14 +0000 |
commit | 6d14e81d8e25f9d7a37579f0b0d93b2bb66d0adc (patch) | |
tree | e07e2a262ae723be879451c3c9182c6c56b4a370 /src/input/frontend/qactioninput.h | |
parent | c49d1183596d6f896611804bc677ad7f103915cc (diff) |
QActionInput/QAxisInput: add property for keys
Change-Id: Ia8cb306dfc63027d66e4e0ad58ae453ddf1ed1f3
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qactioninput.h')
-rw-r--r-- | src/input/frontend/qactioninput.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/frontend/qactioninput.h b/src/input/frontend/qactioninput.h index 917c5a717..37e9c7957 100644 --- a/src/input/frontend/qactioninput.h +++ b/src/input/frontend/qactioninput.h @@ -51,21 +51,21 @@ class QT3DINPUTSHARED_EXPORT QActionInput : public Qt3DCore::QNode { Q_OBJECT Q_PROPERTY(Qt3DInput::QAbstractPhysicalDevice *sourceDevice READ sourceDevice WRITE setSourceDevice NOTIFY sourceDeviceChanged) + Q_PROPERTY(QVariantList keys READ keys WRITE setKeys NOTIFY keysChanged) public: explicit QActionInput(Qt3DCore::QNode *parent = Q_NULLPTR); ~QActionInput(); - void addKey(int key); - void removeKey(int key); - QVector<int> keys() const; - QBitArray keysBitArray() const; - void setSourceDevice(QAbstractPhysicalDevice *sourceDevice); QAbstractPhysicalDevice *sourceDevice() const; + void setKeys(const QVariantList &keys); + QVariantList keys() const; + Q_SIGNALS: void sourceDeviceChanged(); + void keysChanged(); protected: void copy(const Qt3DCore::QNode *ref) Q_DECL_OVERRIDE; |