- cross-posted to:
- linux@lemmy.world
- linux@lemmy.ml
- technology@piefed.social
- cross-posted to:
- linux@lemmy.world
- linux@lemmy.ml
- technology@piefed.social
cross-posted from: https://feditown.com/post/3071906
Edit: To clarify, this is not my personal blog. It’s just intended to raise awareness and spread it around here as well. I just don’t believe in editorializing titles


same, these are surfaced in python, but it’s barely usable
device = uinput.Device([
uinput.BTN_LEFT,
uinput.BTN_RIGHT,
uinput.REL_X,
uinput.REL_Y,
])
device.emit(uinput.REL_X, 0)
device.emit(uinput.REL_Y, 0)
device.emit(uinput.BTN_LEFT, 1)
device.emit(uinput.REL_X, -100)
device.emit(uinput.REL_Y, -100)
Yeah I wrote something using a lower level interface. Like at the usb layer or some shit, I forget. I gave that up and went back to X.