1
0
Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Prilik
fed2060872 refactor fakeinput + invert main thread function
- fakeinput is now just a series of free functions that access the global
  static, which makes more sense than having some arbitrary
  zero-sized-struct with associated methods on it.
- instead of having the active notification run in its own thread, it
  now runs on the main thread, and the controller runs in a separate
  thread. This results in midly nicer code, at least IMO.

Also, I've had to disable optimizations on the evdev_rs crate, as it
seems to be segfaulting on release builds. Very spooky, but it's not
something I'm super interested in debugging right now, so I'll just work
around it. It's not like I need the _blazing fast performance_ from a
Rust wrapper around a C library anyways...
2020-11-05 10:26:11 -05:00
Daniel Prilik
0edac73be3 README tweaks 2020-11-01 23:49:16 -05:00
Daniel Prilik
82e08c8e4a add barebones on-disk mode persistance 2020-10-31 00:16:16 -04:00
Daniel Prilik
d14a92dfe5 add long-press + notif based mode switching
oooooh boy, this is looking pretty slick. I'm kind-of impressed I was
able to throw this together in ~2 days of post-work hacking (though I
guess they were some pretty late-nights...)

There's really only one feature left that I _need_ to implement, which
is the on-disk persistence for selected mode. That shouldn't be too
tricky though...
2020-10-30 23:39:12 -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
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