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 get Jog/Shuttle Controller Events
Forum Updated to NodeBB v4.3 + New Features

How to get Jog/Shuttle Controller Events

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.0k 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.
  • W Offline
    W Offline
    wrosecrans
    wrote on last edited by
    #1

    I recently got a ContourDesign Shuttle X-Press USB Jog/Shuttle controller that I want to use in an application. I made myself a little pyqt script to try and get events from it:
    https://github.com/wrosecrans/PublicSharing/blob/master/events.py

    I also made a C++/Qt-5.6 equivalent, and even tried setting an event filter on the QApplication to try to get all events in my application rather than just a window, but I couldn't get anything to happen when I fiddled with the knob or pushed the buttons. (Pushing buttons on the keyboard, or clicking mouse buttons did print a message,s o the approach seemed sound.) I have tested on OS-X and Windows 10 so far, with the drivers for the device installed.

    I found this thread:

    https://forum.qt.io/topic/60914/how-to-not-allow-qt-to-handle-jog-dial-shuttle-input-device

    which seems to indicate that Qt can see events from this sort of device (they were causing problems in that case because they were showing up as normal mouse events and confusing things)

    So, how can I get access to this hardware?! I really want to be able to control my app with it. Ideally, I want to differentiate it from "normal" input, but at least I'd like to receive simulated keypresses triggered from the driver software.

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

      Hi,

      If I understand your case correctly, you don't have any event generated by your Shuttle X-Press ?

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

      W 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        If I understand your case correctly, you don't have any event generated by your Shuttle X-Press ?

        W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        @SGaist Correct, I spin the knob, and I push the buttons, but it doesn't seem to generate any events.

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

          I'd start with a QAbstractNativeEventFilter based class and check what your receive there when using your device.

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

          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