Add touch map data, viewer for it coming soon

This commit is contained in:
meepingsnesroms
2018-07-25 09:44:49 -07:00
parent 0b169e56ab
commit a6d08d0c93
15 changed files with 9 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ uint16_t palmButtons;
uint16_t palmButtonsLastFrame;
Boolean isM515;
Boolean haveKsyms;
Boolean skipFrameDelay;
uint8_t* sharedDataBuffer;
/*video*/
@@ -235,6 +236,7 @@ static Boolean testerInit(){
FtrGet(sysFtrCreator, sysFtrNumOEMDeviceID, &deviceId);
isM515 = deviceId == (uint32_t)'lith';/*"lith" is the Palm m515 device code, likely because it is one of the first with a lithium ion battery*/
haveKsyms = initUndocumentedApiHandlers();
skipFrameDelay = false;
subprogramIndex = 0;
subprogramArgsSet = false;
lastSubprogramReturnValue = makeVar(LENGTH_0, TYPE_NULL, 0);
@@ -294,7 +296,9 @@ DWord PilotMain(Word cmd, Ptr cmdBPB, Word launchFlags){
applicationRunning = true;
while(applicationRunning){
testerFrameLoop();
SysTaskDelay(4);/*30 fps*/
if(!skipFrameDelay)
SysTaskDelay(4);/*30 fps*/
skipFrameDelay = false;
}
testerExit();

View File

@@ -56,6 +56,7 @@ extern uint16_t palmButtons;
extern uint16_t palmButtonsLastFrame;
extern Boolean isM515;
extern Boolean haveKsyms;
extern Boolean skipFrameDelay;
extern uint8_t* sharedDataBuffer;
/*

View File

@@ -416,7 +416,7 @@ var getTouchscreenLut(){
}
if(getButtonPressed(buttonSelect)){
StrPrintF(sharedDataBuffer, "TOUCHM%d.BIN", bufferStrip);
StrPrintF(sharedDataBuffer, "TOUCHMAP%d.BIN", bufferStrip);
makeFile((uint8_t*)pixelData, bufferSize, sharedDataBuffer);
bufferStrip++;
if(bufferStrip * bufferHeight >= SCREEN_HEIGHT + 60){
@@ -433,6 +433,8 @@ var getTouchscreenLut(){
memset(pixelData, 0x00, bufferSize);
}
}
skipFrameDelay = true;/*run as fast as possible to pick up pen movement*/
}
if(getButtonPressed(buttonBack)){

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.