Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Better support for Clicking (vs Drag-Start) #12

Open
anduchs opened this issue Nov 13, 2013 · 2 comments
Open

Feature: Better support for Clicking (vs Drag-Start) #12

anduchs opened this issue Nov 13, 2013 · 2 comments

Comments

@anduchs
Copy link
Contributor

anduchs commented Nov 13, 2013

The Problem:
When trying to click, there is naturally some movement of the hand. This ends up triggering a Drag-Start instead of a click action very often.

Feature-Proposals:

  • Adding Acceleration to device
  • Changing the Drag-Start Threshold for the device

Reproduce:

  • Gnome, Firefox, XBMC (especially the OnScreen Keyboards in each of these)

I may possibly work on this myself at some point, but I don't know, how X11 works wrt Acceleration or DnD. I'm actually not sure, if pointer-speed is even configurable right now.
So if anyone got pointers to how this works, they are very welcome.

@dvdhrm
Copy link
Collaborator

dvdhrm commented Nov 25, 2013

Please ping me if I miss any email from you. I get a lot of mails each day and xf86-input-xwiimote isn't really my highest priority ;) I don't mind a reminder if I haven't responded after 3 days.

Regarding your problem: I'm far too less qualified to speak about pointer-acceleration or drag/drop detection in Xorg. If you have ideas how to implement it, let me know. My first idea would be to smoothen small pointer-movements so they're not detected as movement (which probably is the first step of implementing pointer-acceleration).

However, I hate the fact that Xorg doesn't provide me driver-stacking. What I want is to provide mouse-input to Xorg and Xorg then loads the default mouse driver on that input.. Sadly, we need to basically copy the mouse-driver into xwiimote instead..

I mostly lost motivation to work on this driver, anymore. Xorg, in my opinion, is a dead end for desktop linux so I'm rather spending my time on a proper input-stack for wayland. If you have patches for this driver, feel free to let me know and I will pull them in.

@anduchs
Copy link
Contributor Author

anduchs commented Nov 25, 2013

Let me put it this way: I'm very application-driven by my own living-room HTPC here.
I'd love to implement this in terms of wayland-input, but for my use case of Firefox/Flash based "OnlineTV" I did not get a meaningful setup (I'm awaiting a first usable mutter/gs + firefox/epiphany+flash very anxiously)...
If you know some trick on having a fullscreen firefox+flash and xbmc under weston (even with xwayland), I'll happily switch over... ;-)
Btw, is there xwiimote-support in weston already ?

Back to topic, do you have any idea, where the acceleration handling is done in x.org drivers anyways ? I looked at input-evdev (since I thought that was the place to start), but there was nothing in there. I'd hate to copy a bunch of legacy-code from some driver that ends up being unused and dysfunc (which can always happen on X I have the feeling).

Alternatively, I guess I could just apply some custom acceleration-code like x = x ^ 3 or whatever similar, but that would be more of a dirty static hack and not configurable via e.g. Gnome-Control-Center...

P.S. you did not miss any email... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants