Faster screen clearing code thanks to DragonMin, Joat, and LiraNuna.
memset(VRAM_A, 0, 98304) FTW!
Pressure Detection based on one line of Natrium’s “UnderPressureDemo“.
Also removed almost ALL sparse readings due to light touches.
TouchDetection = if((touchXY.py>0) && (pressure < 192))
Note, stylus has a pressure of around 140, and thumb around 40.
Two fingers give different results.
Pressure Indication circle thanks to Bresenham’s Algorithm and StoneCypher’s hint of its existence.
Better Interface.
Re-Wrote code completely without any while loops.
In normal touchscreen detection code, my code can be dropped in for global reporting of Dual and Single touch and all 3 points.
Simply copy DSMultiTouch.cpp to an NDSLib template project to compile. Comment out screenshot a fat driver unless you know where to get them. (Chism and DesktopMan/LiraNuna)