wheaney / breezy-desktop

XR virtual workspace library for Linux
GNU General Public License v3.0
272 stars 33 forks source link

Adding double click support in mouse mode #11

Closed jdavidthomson closed 9 months ago

jdavidthomson commented 9 months ago

Steps to reproduce: 1 start driver service

  1. Enable driver
  2. Put driver into mouse mode
  3. Plug in headset
  4. [Headset and driver configure and calibrate]
  5. Look to an icon (I.e. web browser)
  6. <== here is where a double click is needed
  7. The web browser opens

Expected results:

  1. There could be a tap pattern that triggers a mouse double-click
  2. There could be a configurable option in the driver or desktop that allows for configuring recalibration tap pattern, mouse mode double click tap pattern, etc.

Actual result:

  1. This feature does not exist.
  2. This is a new feature that would be implemented.
jdavidthomson commented 9 months ago

I've worked on updating driver.c multitap.c and output.c programs to make 1,2,3 and 4 taps work pretty well.

The constants have been updated in my code, and calibrate and center have been pushed down in priority, making room for single and double tap.

I implemented the single left click, and double left click using using the appropriate mouse driver code.

Will submit a pr eventually.

jdavidthomson commented 9 months ago

Added to XRLinuxDriver project as that is where the changes are. https://github.com/wheaney/XRLinuxDriver/issues/49