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

QGamepadKeyNavigation Class

Provides support for keyboard events triggered by gamepads.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGamepadKeyNavigation Class

  • Header: QGamepadKeyNavigation

  • qmake: QT += gamepad

  • Inherits: QObject

Detailed Description

QGamepadKeyNavigation provides support for keyboard events triggered by gamepads.

Member Function Documentation

 

[explicit] QGamepadKeyNavigation::QGamepadKeyNavigation(QObject *parent = nullptr)

Constructs a QGamepadNavigation object with the given parent.

bool QGamepadKeyNavigation::active() const

* Returns whether key navigation on the gamepad is active or not.

Getter function for property active.

See Also

See also setActive()

Qt::Key QGamepadKeyNavigation::buttonAKey() const

Returns the key mapping of A button.

Getter function for property buttonAKey.

See Also

See also setButtonAKey()

Qt::Key QGamepadKeyNavigation::buttonBKey() const

Returns the key mapping of the B button.

Getter function for property buttonBKey.

See Also

See also setButtonBKey()

Qt::Key QGamepadKeyNavigation::buttonGuideKey() const

Returns the key mapping of the Guide button.

Getter function for property buttonGuideKey.

See Also

See also setButtonGuideKey()

Qt::Key QGamepadKeyNavigation::buttonL1Key() const

Returns the key mapping of the left shoulder button.

Getter function for property buttonL1Key.

See Also

See also setButtonL1Key()

Qt::Key QGamepadKeyNavigation::buttonL2Key() const

Returns the key mapping of the left trigger button.

Getter function for property buttonL2Key.

See Also

See also setButtonL2Key()

Qt::Key QGamepadKeyNavigation::buttonL3Key() const

Returns the key mapping of the left stick button.

Getter function for property buttonL3Key.

See Also

See also setButtonL3Key()

Qt::Key QGamepadKeyNavigation::buttonR1Key() const

Returns the key mapping of the Right shoulder button.

Getter function for property buttonR1Key.

See Also

See also setButtonR1Key()

Qt::Key QGamepadKeyNavigation::buttonR2Key() const

Returns the key mapping of the Right trigger button.

Getter function for property buttonR2Key.

See Also

See also setButtonR2Key()

Qt::Key QGamepadKeyNavigation::buttonR3Key() const

Returns the key mapping of the right stick button.

Getter function for property buttonR3Key.

See Also

See also setButtonR3Key()

Qt::Key QGamepadKeyNavigation::buttonSelectKey() const

Returns the key mapping of the Select button.

Getter function for property buttonSelectKey.

See Also

See also setButtonSelectKey()

Qt::Key QGamepadKeyNavigation::buttonStartKey() const

Returns the key mapping of the Start button.

Getter function for property buttonStartKey.

See Also

See also setButtonStartKey()

Qt::Key QGamepadKeyNavigation::buttonXKey() const

Returns the key mapping of the X button.

Getter function for property buttonXKey.

See Also

See also setButtonXKey()

Qt::Key QGamepadKeyNavigation::buttonYKey() const

Returns the key mapping of the Y button.

Getter function for property buttonYKey.

See Also

See also setButtonYKey()

Qt::Key QGamepadKeyNavigation::downKey() const

Returns the key mapping of the Down button.

Getter function for property downKey.

See Also

See also setDownKey()

QGamepad *QGamepadKeyNavigation::gamepad() const

Returns a pointer the current QGamepad

Getter function for property gamepad.

See Also

See also setGamepad()

Qt::Key QGamepadKeyNavigation::leftKey() const

Returns the key mapping of the Left button.

Getter function for property leftKey.

See Also

See also setLeftKey()

Qt::Key QGamepadKeyNavigation::rightKey() const

Returns the key mapping of the Right button.

Getter function for property rightKey.

See Also

See also setRightKey()

void QGamepadKeyNavigation::setActive(bool isActive)

Activates key navigation if isActive is true, disables it otherwise.

Setter function for property active.

See Also

See also active()

void QGamepadKeyNavigation::setButtonAKey(Qt::Key key)

* Sets the mapping of the A button with the keycode * specified in key.

Setter function for property buttonAKey.

See Also

See also buttonAKey()

void QGamepadKeyNavigation::setButtonBKey(Qt::Key key)

* Sets the mapping of the B button with the keycode * specified in key.

Setter function for property buttonBKey.

See Also

See also buttonBKey()

void QGamepadKeyNavigation::setButtonGuideKey(Qt::Key key)

* Sets the mapping of the Guide button with the keycode * specified in key.

Setter function for property buttonGuideKey.

See Also

See also buttonGuideKey()

void QGamepadKeyNavigation::setButtonL1Key(Qt::Key key)

* Sets the mapping of the left shoulder button with the * keycode specified in key.

Setter function for property buttonL1Key.

See Also

See also buttonL1Key()

void QGamepadKeyNavigation::setButtonL2Key(Qt::Key key)

* Sets the mapping of the left trigger button with the * keycode specified in key.

Setter function for property buttonL2Key.

See Also

See also buttonL2Key()

void QGamepadKeyNavigation::setButtonL3Key(Qt::Key key)

* Sets the mapping of the left stick button with the * keycode specified in key.

Setter function for property buttonL3Key.

See Also

See also buttonL3Key()

void QGamepadKeyNavigation::setButtonR1Key(Qt::Key key)

* Sets the mapping of the right shoulder button with the * keycode specified in key.

Setter function for property buttonR1Key.

See Also

See also buttonR1Key()

void QGamepadKeyNavigation::setButtonR2Key(Qt::Key key)

* Sets the mapping of the right trigger button with the * keycode specified in key.

Setter function for property buttonR2Key.

See Also

See also buttonR2Key()

void QGamepadKeyNavigation::setButtonR3Key(Qt::Key key)

* Sets the mapping of the right stick button with the * keycode specified in key.

Setter function for property buttonR3Key.

See Also

See also buttonR3Key()

void QGamepadKeyNavigation::setButtonSelectKey(Qt::Key key)

* Sets the mapping of the Select button with the * keycode specified in key.

Setter function for property buttonSelectKey.

See Also

See also buttonSelectKey()

void QGamepadKeyNavigation::setButtonStartKey(Qt::Key key)

* Sets the mapping of the Start button with the * keycode specified in key.

Setter function for property buttonStartKey.

See Also

See also buttonStartKey()

void QGamepadKeyNavigation::setButtonXKey(Qt::Key key)

* Sets the mapping of the X button with the * keycode specified in key.

Setter function for property buttonXKey.

See Also

See also buttonXKey()

void QGamepadKeyNavigation::setButtonYKey(Qt::Key key)

* Sets the mapping of the Y button with the * keycode specified in key.

Setter function for property buttonYKey.

See Also

See also buttonYKey()

void QGamepadKeyNavigation::setDownKey(Qt::Key key)

* Sets the mapping of the Down button with the * keycode specified in key.

Setter function for property downKey.

See Also

See also downKey()

void QGamepadKeyNavigation::setGamepad(QGamepad *gamepad)

* Selects the specified gamepad.

Setter function for property gamepad.

See Also

See also gamepad()

void QGamepadKeyNavigation::setLeftKey(Qt::Key key)

* Sets the mapping of the Left button with the * keycode specified in key.

Setter function for property leftKey.

See Also

See also leftKey()

void QGamepadKeyNavigation::setRightKey(Qt::Key key)

* Sets the mapping of the Right button with the * keycode specified in key.

Setter function for property rightKey.

See Also

See also rightKey()

void QGamepadKeyNavigation::setUpKey(Qt::Key key)

* Sets the mapping of the Up button with the * keycode specified in key.

Setter function for property upKey.

See Also

See also upKey()

Qt::Key QGamepadKeyNavigation::upKey() const

Returns the key mapping of the Up button.

Getter function for property upKey.

See Also

See also setUpKey()

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