How to configure gamepad button in c++?



  • The QML button configurator example is able to map the buttons of controllers besides the 360 but I can't use QML with QWidget. I was wondering how I could do this in c++?


  • Moderators

    @garrisb
    about what example are you talking? I couldn't find it.
    Beside that the QtGamepad module also provides a C++ API of course.



  • Nevermind, I figured it out.

    I put that
    QGamepadManager::instance()->configureButton(deviceId, QGamepadManager::WhateverButton);

    in release button.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.