Demo entry 6165975

uinput

   

Submitted by anonymous on Oct 06, 2016 at 12:24
Language: Python. Code size: 336 Bytes.

from evdev import InputDevice, InputEvent, UInput, AbsInfo, categorize, ecodes as e
capabilities = {
    e.EV_KEY : [e.BTN_LEFT, e.BTN_RIGHT],
    e.EV_ABS : [
         (e.ABS_X, AbsInfo(value=3100, min=0, max=3264, fuzz=0, flat=0, resolution=13)),
         (e.ABS_Y, AbsInfo(1090, 0, 1856, 0, 0, 13))]
}
ui=UInput(capabilities) 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).