Istarnion / magic_touchscreen

A simple wrapper around reading touchscreen events from libevdev
7 stars 5 forks source link

Handle a null ctxPtr in magicts_update #4

Closed BeBopping closed 2 years ago

BeBopping commented 2 years ago

Instead of crashing on a null ctxPtr, we can return a TouchData struct with default values which indicate that no touch events are occuring.

Istarnion commented 2 years ago

Great, thank you for this!