xwiimote / xf86-input-xwiimote

X.org XInput2 Wii Remote driver based on XWiimote
Other
37 stars 14 forks source link

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

Open anduchs opened 10 years ago

anduchs commented 10 years ago

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:

Reproduce:

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 commented 10 years ago

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 commented 10 years ago

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... ;-)