Skip to content
Snippets Groups Projects
  1. Aug 05, 2016
  2. Aug 04, 2016
  3. Jul 18, 2016
  4. Jul 17, 2016
  5. Jul 15, 2016
  6. Jul 14, 2016
  7. Jul 13, 2016
  8. Jul 12, 2016
  9. Jul 11, 2016
  10. Jul 05, 2016
  11. Jul 04, 2016
  12. Jul 03, 2016
  13. Jun 30, 2016
  14. Jun 28, 2016
  15. Jun 27, 2016
  16. Jun 24, 2016
  17. Jun 22, 2016
    • Peter Hutterer's avatar
      pad: Add a new API for modes and mode groups · 6583f4bb
      Peter Hutterer authored
      
      Move mode control to libinput. This reduces some flexibility on what we can do
      with modes but makes it a lot easier for anyone to implement modes correctly
      and have the LEDs apply appropriately, etc. Let's go with the option to make
      the 95% use-case easy. Note: whether the mode is actually used is up to the
      caller, e.g.  under Windows and OS X the mode only applies to the
      rings/strips, not the buttons.
      
      A tablet pad has 1 or more mode groups, all buttons/ring/strips are assigned
      to a mode group. That group has a numeric mode index and is hooked to the
      LEDs. libinput will switch the LEDs accordingly.
      
      The mode group is a separate object. This allows for better APIs when it comes
      to:
      * checking whether a button/ring/strip is part of a mode group
      * checking whether a button will trigger a mode transition
      
      and in the future potentially:
      * checking which mode transition will happen
      * setting which button should change the mode transition
      * changing what type of mode transition should happen.
      * moving a button from one mode group to the other
      
      This patch adds the basic scaffolding, without any real implementation.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      Proofread-by: default avatarYong Bakos <ybakos@humanoriented.com>
      Reviewed-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Reviewed-by: default avatarCarlos Garnacho <carlosg@gnome.org>
      6583f4bb
  18. Jun 21, 2016
Loading