Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Anything Related to Gamepad

Anything Related to Gamepad

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 849 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.
  • V Offline
    V Offline
    VIDYUL SHAH
    wrote on last edited by
    #1

    I am looking for examples related to PyQt QGamepad but didn't find any relevant examples but just discussions about it on different forums
    Saw this link related to C++ only but not python: https://doc.qt.io/qt-5/qtgamepad-index.html

    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      The examples might be C++ but they are pretty basic and should not be too hard to translate to Python,

      V Offline
      V Offline
      VIDYUL SHAH
      wrote on last edited by VIDYUL SHAH
      #3

      @SGaist Thanks but the problem is it doesn't allow to reconnect to the joystick if the joystick is disconnected while the Qt program is running and the joystick is detect at /dev/input/js0, which can only be accessed using struct module. I have implemented this using struct module inside a QThread to read the data and again reconnect.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        The examples might be C++ but they are pretty basic and should not be too hard to translate to Python,

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          The examples might be C++ but they are pretty basic and should not be too hard to translate to Python,

          V Offline
          V Offline
          VIDYUL SHAH
          wrote on last edited by VIDYUL SHAH
          #3

          @SGaist Thanks but the problem is it doesn't allow to reconnect to the joystick if the joystick is disconnected while the Qt program is running and the joystick is detect at /dev/input/js0, which can only be accessed using struct module. I have implemented this using struct module inside a QThread to read the data and again reconnect.

          1 Reply Last reply
          0
          • V VIDYUL SHAH has marked this topic as solved on

          • Login

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