chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Add mousewheel emulation and support for trailing comments in ds4drv.conf. #34

Closed liftoff closed 10 years ago

liftoff commented 10 years ago

uinput.py: Added support for emulating a mousewheel (up or down). uinput.py: Added support for trailing comments in ds4drv.conf files. ds4drv.conf: Added scroll wheel emulation example.

chrippa commented 10 years ago

A couple of issues I'd like to see fixed before I merge this:

if name in (ecodes.REL_WHEELUP, ecodes.REL_WHEELDOWN):
  ... the scroll wheel stuff here
else:
  ... move the other mouse stuff here
liftoff commented 10 years ago

OK I'll take care of that stuff. No problem.

As for triggering key repeat based on time: I forget why I did it that way, LOL. It was late. Your way is probably better :smile: