terba / slimmer

User interface controller for Logitech Media Server (aka SlimServer, Squeezebox Server, SqueezeCenter)
GNU General Public License v3.0
33 stars 7 forks source link

Handle relative-axis rotary-encoder input (dtoverlay=rotary-encoder) … #41

Open w531t4 opened 2 years ago

w531t4 commented 2 years ago

I was implementing this on a RPI, and implementing a rotary encoder is way easier with dtoverlay than with pikeyd. That being said, the dtoverlay implementation doesn't output in KEY_LEFT, KEY_RIGHT... I've augmented things a bit to interpret getting -1 and 1 and interpreting those just as it already interpreted KEY_LEFT, KEY_RIGHT.