Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22759

Wayland platform plugins: Implement support for more buttons on "mouse" devices (16+4 buttons).

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • P2: Important
    • None
    • None
    • Qt 5.0.0 For this task, the environment is Linux with X11, using the xlib or xcb platform plugins. A "mouse" pointer device, with more 5 non-wheel buttons, than 9 buttons, is the hardware requirement for seeing benefit from these changes.

    Description

      Qt::MouseButton (and the corresponding flags) are expanded into a 32-bit field, supporting name/value bits for up to 31 buttons. Following this prerequisite namespace change, the plugins are enhanced to translate high-numbered buttons into the new Qt::MouseButton bit fields. And finally, a one-line change is made in qguiapplication.cpp, allowing button numbers above "XButton2" (AKA Button #9, AKA the "Forward" Button) to pass through for higher-level processing.

      This code is all done, and tested with a widget-based test program. Other plugins (e.g., wayland) must be enhanced in subsequent tasks.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            rickst29 Richard Stockton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes