arcnmx / input-linux-rs

evdev and uinput for Rust
MIT License
36 stars 6 forks source link

Create UInputHandle from EvdevHandle #8

Open maxbla opened 3 years ago

maxbla commented 3 years ago

It would be nifty if there were a library function that set all the bits of a UInputHandle so they matched the bits of a EvdevHandle. I set out trying to do this myself and learned that I don't really know how absolute axis events work. I'll probably continue to work on this, but I suspect it would be useful for other API consumers too.

arcnmx commented 3 years ago

Yeah, it seems like that would be useful to include! fwiw I do have an example of roughly how to do this

maxbla commented 2 years ago

That example is helpful. To incorporate something like it into the library, I think a few more gaps would need to be closed, like force feedback, but it worked well enough for the demo I was messing with.