Reputation: 1
I am aware that I can use
let f = File::open("/dev/input/event0").unwrap();
let dummy = evdev_rs::UInputDevice::create_from_device(&Device::new_from_fd(f).unwrap()).unwrap();
But how would I create a dummy device that would be able to do all events(keyboard, mouse, etc) from no previous model? Also, I do not completely understand evdev, but if I were to receive an event from my keyboard and then write that exact event to the dummy would it work?
Edit: Sorry for the ambiguity, I realized that I actually want to create a UInputDevice able to produce events.
Upvotes: 0
Views: 302