Ho una penna Wacom con un bottone. Come posso attivare lo scorrimento quando si sposta la penna con il pulsante premuto?
Secondo xev, di seguito, gli eventi di attivazione sono MotionNotify con stato 0x200 .
Se ciò non viene fatto in modo banale, un'idea che ho è quella di creare un servizio per leggere questi eventi da qualche parte e trasformarli in altri eventi. In questo modo, posso anche definire i gesti. Con questo approccio:
- Dove posso leggerli?
- Come posso riscrivere gli eventi?
- Ci sono librerie per rilevare i gesti?
Evento MotionNotify, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695630659, (349.181), root: (1255.185),
stato 0x0, is_hint 0, same_screen SÌ
Evento ButtonPress, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695630659, (349.181), root: (1255.185),
stato 0x0, pulsante 2, same_screen SÌ
Evento MotionNotify, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695630667, (348.183), root: (1254.187),
stato 0x200, is_hint 0, same_screen SÌ
Evento MotionNotify, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695630675, (347.184), root: (1253.188),
stato 0x200, is_hint 0, same_screen SÌ
...
Evento MotionNotify, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695632069, (327.486), root: (1233.490),
stato 0x200, is_hint 0, same_screen SÌ
Evento ButtonRelease, seriale 33, NO sintetico, finestra 0xc00001,
root 0x2ce, subw 0x0, tempo 695632069, (327.486), root: (1233.490),
stato 0x200, pulsante 2, same_screen SÌ