n4archive / pigame

A pygame wrapper for the libary pitft_touchscreen.
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Changed event array, fixed rel calculation #8

Closed BroMarduk closed 5 years ago

BroMarduk commented 5 years ago

I removed the pigameevs[] and replaced it with a simple flag. I don't believe storing the ID's is required here and because nothing was ever deleted, the pigameevs[] just kept increasing in size and eventually when evdev wraps around there will could be issues with duplicates.

I also found out the axes inversions were messing up the rel values so fixed those as well and they should be correct.

This will also handle things should a SYN_DROPPED message ever get received (they are currently not being handled by the current pitft_touchscreen class, but I've added support locally and hope to get it merged in.).

nift4 commented 5 years ago

Thanks!