1
0

8 Commits

Author SHA1 Message Date
Daniel Prilik
f7a261cb8a use libudev to handle device disconnect/reconnect
This change has substantially bumped up the daemon's overall robustness,
as the code now ensures that the controller will only start once the
/dev/input/eventXX file is set up, which was causing all sorts of issues
in the past.

Additionally, this change enables the daemon to run as a proper
background task that _doesn't_ constantly die / need to be restarted,
which removes the need for any janky udev "on add" rules, and instead, a
simple systemd user service will suffice.
2020-11-06 00:22:56 -05:00
Daniel Prilik
4f25a73eb3 experimental multitouch based smooth scrolling
high-resolution mouse wheels aren't supported in userland yet, so why
don't we fake a high resolution touchpad instead 😄

it's somewhat working, though it seems to crash on startup when
installed (among other weird bugs).
2020-11-02 18:50:45 -05:00
Daniel Prilik
bd5db3dc67 clean up notification when terminated 2020-11-01 23:30:12 -05:00
Daniel Prilik
82e08c8e4a add barebones on-disk mode persistance 2020-10-31 00:16:16 -04:00
Daniel Prilik
e6fa6845fe haptics!
https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/radial-controller-protocol-implementation

With a little bit of trial and error (and a crash-course in how the heck
HID even works), I figured out how to get the dial to provide haptic
feedback!

Along the way, I also learned that you can take advantage of the
(incorrectly named) Resolution Multiplier field to customize how many
"steps" the dial should have, offloading the work to the device itself!

Very cool!!
2020-10-30 19:59:23 -04:00
Daniel Prilik
858209484f update to Upstream evdev_rs
currently pinned to upstream master, which is ~0.4.0, modulo some minor
internal tweaks + my PR to implement Send on `Device` and
`UInputDevice`

https://github.com/ndesh26/evdev-rs/pull/55

It looks like there are some larger breaking changes coming down the
pipeline as well? Change is always good, so I'll update whenever 0.5.0
is released as well :)
2020-10-30 10:28:55 -04:00
Daniel Prilik
cf1b0a4eb4 add scroll + notifications
oh my god it took far too long to get notifications working...
2020-10-29 19:35:10 -04:00
Daniel Prilik
c4039edc55 initial commit 2020-10-29 00:31:11 -04:00