core+platforms, revise pico pen handling

the MSB in the tablet position register denotes pen on surface.
add logic and a hotkey for handling pen not on surface. This allows
for repositioning of the pen without the storyware reacting to it.
This commit is contained in:
kub 2024-03-17 10:44:57 +01:00
parent 9f29605f55
commit c87e36d750
12 changed files with 127 additions and 70 deletions

View file

@ -36,6 +36,8 @@ static void PicoResetPico(void)
PicoPicohw.fifo_bytes = 0;
PicoPicohw.r12 = 0;
PicoPicohw.pen_pos[0] = PicoPicohw.pen_pos[1] = 0x8000;
PicoPicoPCMIrqEn(0);
PicoPicoPCMFilter(0);
PicoPicoPCMGain(8);