mirror of
https://github.com/libretro/Mu.git
synced 2026-07-08 17:57:01 +00:00
Add touch map data, viewer for it coming soon
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
@@ -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)){
|
||||
|
||||
BIN
tests/touchscreenResistanceMap/TOUCHMAP0.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP0.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP1.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP1.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP10.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP10.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP2.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP2.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP3.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP3.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP4.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP4.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP5.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP5.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP6.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP6.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP7.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP7.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP8.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP8.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/TOUCHMAP9.BIN
Executable file
BIN
tests/touchscreenResistanceMap/TOUCHMAP9.BIN
Executable file
Binary file not shown.
BIN
tests/touchscreenResistanceMap/fullTouchMap.bin
Normal file
BIN
tests/touchscreenResistanceMap/fullTouchMap.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user