Eeems-Org/oxide

Adding four event code's

flamaque opened this issue · 3 comments

Looking at evtest output it seems that it's necessary to add:

  • ABS_MT_PRESSURE
  • ABS_MT_TOUCH_MINOR
  • ABS_MT_TOUCH_MAJOR
  • ABS_MT_ORIENTATION
    to inject_evdev as well.

I'm not sure how to do that but it seems to be just these lines:

if(code == "ABS_MT_PRESSURE"){ device->write(EV_ABS, ABS_MT_PRESSURE, value); return true; }
if(code == "ABS_MT_TOUCH_MINOR"){ device->write(EV_ABS, ABS_MT_TOUCH_MINOR, value); return true; }
if(code == "ABS_MT_TOUCH_MAJOR"){ device->write(EV_ABS, ABS_MT_TOUCH_MAJOR, value); return true; }
if(code == "ABS_MT_ORIENTATION"){ device->write(EV_ABS, ABS_MT_ORIENTATION, value); return true; }

Eeems commented

Those should not be needed for a basic touch event, they are only needed to mimic the full event. I do plan on adding a bunch more to the tool to support keyboard and pen input.

It could be that I've got the wrong order of sending the commands. (I cannot find a clear description of how to)
But for now the only thing -any command- I send will just pop-up the page settings menu, in the left down corner.
But I'll try and see what combination will succeed! Haha

Thanks for the quick response.

Eeems commented

There are examples in the PR