Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Access gamepads via QGamepad

Access gamepads via QGamepad

Scheduled Pinned Locked Moved Unsolved Game Development
3 Posts 2 Posters 849 Views
  • 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.
  • C Offline
    C Offline
    ckarner
    wrote on last edited by
    #1

    Hello,

    I'm currently working on some kind of embedded gaming project. Therefore I've connected two XBOX360 Wireless Gamepads to my Raspberry Pi using the Microsoft Xbox 360 Wireless Receiver.
    When using the QGamepad class that comes with Qt 5.7 it recognizes just one gamepad - but accepts input from both of them. Is there any way to tell Qt to directly access the devices?
    Linux itself recognizes the two gamepads as /dev/input/js0 and /dev/input/js1.

    I'm looking forward to any hints :-)

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      One thing that comes to my mind is to try out Qt 5.8 - maybe this issue is fixed there already?

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ckarner
        wrote on last edited by
        #3

        This was actually something I thought about, but I'd prefer other solutions than switching to Qt 5.8.

        Also: I don't know if it's actually an issue, it just seems as if QGamepad uses gamepads which are connected via USB.

        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