this post was submitted on 01 Jun 2026
70 points (98.6% liked)

Linux

13880 readers
249 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] rumba@lemmy.zip 2 points 4 days ago* (last edited 4 days ago) (1 children)

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)

[โ€“] jaybone@lemmy.zip 2 points 4 days ago

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.