KeyboardController Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | KeyboardController

Qt 5.6.2 Reference Documentation

# KeyboardController Class

(Qt3DInput::Input::KeyboardController)

Inherits: | Qt3DInput::QAbstractPhysicalDeviceBackendNode

- List of all members, including inherited members

## Public Functions

| KeyboardController()
void | addKeyboardInput(const Qt3DCore::QNodeId &input)
Qt3DCore::QNodeId | currentFocusItem() const
QVector<Qt3DCore::QNodeId> | keyboardInputs() const
QVector<HKeyboardInput> | keyboardInputsHandles() const
Qt3DCore::QNodeId | lastKeyboardInputRequester() const
void | removeKeyboardInput(const Qt3DCore::QNodeId &input)
void | requestFocusForInput(const Qt3DCore::QNodeId &inputId)
void | setCurrentFocusItem(const Qt3DCore::QNodeId &input)
void | setInputHandler(InputHandler *handler)
void | updateFromPeer(Qt3DCore::QNode *peer)
void | updateKeyEvents(const QList<QT_PREPEND_NAMESPACE( QKeyEvent ) > &events)

## Reimplemented Public Functions

virtual float | axisValue(int axisIdentifier) const
virtual void | cleanup()
virtual bool | isButtonPressed(int buttonIdentifier) const

- 8 public functions inherited from Qt3DInput::QAbstractPhysicalDeviceBackendNode
- 5 public functions inherited from Qt3DCore::QBackendNode

## Protected Functions

void | sceneChangeEvent(const Qt3DCore::QSceneChangePtr &)

- 3 protected functions inherited from Qt3DCore::QBackendNode

## Member Function Documentation

### KeyboardController::KeyboardController()

Default constructs an instance of KeyboardController.

### void KeyboardController::addKeyboardInput(const Qt3DCore::QNodeId &input)

### `[virtual]` float KeyboardController::axisValue(int axisIdentifier) const

### `[virtual]` void KeyboardController::cleanup()

### Qt3DCore::QNodeId KeyboardController::currentFocusItem() const

See also setCurrentFocusItem().

### `[virtual]` bool KeyboardController::isButtonPressed(int buttonIdentifier) const

### QVector<Qt3DCore::QNodeId> KeyboardController::keyboardInputs() const

### QVector<HKeyboardInput> KeyboardController::keyboardInputsHandles() const

### Qt3DCore::QNodeId KeyboardController::lastKeyboardInputRequester() const

### void KeyboardController::removeKeyboardInput(const Qt3DCore::QNodeId &input)

### void KeyboardController::requestFocusForInput(const Qt3DCore::QNodeId &inputId)

### `[protected]` void KeyboardController::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &)

### void KeyboardController::setCurrentFocusItem(const Qt3DCore::QNodeId &input)

See also currentFocusItem().

### void KeyboardController::setInputHandler(InputHandler *handler)

### void KeyboardController::updateFromPeer(Qt3DCore::QNode *peer)

### void KeyboardController::updateKeyEvents(const QList<QT_PREPEND_NAMESPACE( QKeyEvent ) > &events)