@neauoire may I propose: varvara touch input, as an extension of the mouse device
additions:
- one byte for touch id (0 means no touch i.e. mouse input)
- one byte for touch pressure (>0 is down, 0 is up) EDIT: upsize to short for better fidelity
xy coordinates will reuse that of mouse device
as for pointer emulation, the varvara impl can fill in state/scrollx/scrolly as appropriate (e.g. one finger means leftclick, two finger means rightclick)
so if I use noodle with a touchscreen, it'll treat my touch input as the mouse
but if I use a rom that supports touch, it can detect touchid>0 and handle my touch input accordingly!
wdyt ^^
#uxn #varvara



