Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to configure gamepad button in c++?
Forum Updated to NodeBB v4.3 + New Features

How to configure gamepad button in c++?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 911 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garrisb
    wrote on last edited by
    #1

    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++?

    raven-worxR 1 Reply Last reply
    0
    • G garrisb

      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++?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • G Offline
        G Offline
        garrisb
        wrote on last edited by
        #3

        Nevermind, I figured it out.

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

        in release button.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved