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
[–] 2 points 5 months ago* (1 child)

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)

  • source
  • parent
  • hideshow 1 child comment