Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.2 Android: Capturing GenericMotion events from external touchpad.
Forum Updated to NodeBB v4.3 + New Features

Qt 5.2 Android: Capturing GenericMotion events from external touchpad.

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.4k 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.
  • S Offline
    S Offline
    sj0h
    wrote on last edited by
    #1

    I have an Apple Touchpad connected via bluetooth to an Android tablet. I want it to work independently of the main device touchscreen, and so have an Android input device configuration file setting it up as a touch.deviceType=TouchPad.

    From this device, I'm not receiving any events via MainWindow::touchEvent or MainWindow::event. However, by placing debugging code into QtActivity.java, the event does get passed to the dispatchGenericMotionEvent handler.

    • I have tried passing the dispatchGenericMotionEvent event on to QtNative.sendTouchEvent(), but still no events appeared from the touchpad in the c++ event handler.
    • I have considered passing the touch information separately via JNI, but even then, there doesn't appear to be an interface to inject the motion event into the gesture recogniser.

    I'm looking for some direction on how to capture these events and pass them to the gesture recognition handling. Any ideas, or direction on how this event handling works? Thanks

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

      Hi and welcome to devnet,

      For such a low level question, I would advise you to ask it on the interest mailing list, you'll find there Qt's developers/maintainers (this forum is more user oriented)

      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