mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Remove old touch playground code
This commit is contained in:
parent
73e3a18ea8
commit
ee86ffeb03
@ -73,29 +73,6 @@ bool ShowTouchCalibrationDialog(void)
|
||||
return HID_SetCalibrationData(calibrations, countof(dot_positions), SCREEN_WIDTH_BOT, SCREEN_HEIGHT);
|
||||
}
|
||||
|
||||
void ShowTouchPlayground(void)
|
||||
{
|
||||
ClearScreen(BOT_SCREEN, COLOR_STD_BG);
|
||||
|
||||
while (1) {
|
||||
DrawStringF(BOT_SCREEN, 16, 16, COLOR_STD_FONT, COLOR_STD_BG,
|
||||
"Current touchscreen coordinates: 000, 000");
|
||||
|
||||
u32 pressed = InputWait(0);
|
||||
if (pressed & BUTTON_B) return;
|
||||
|
||||
while (pressed & BUTTON_TOUCH) {
|
||||
u16 tx, ty;
|
||||
HID_ReadTouchState(&tx, &ty);
|
||||
if (tx < SCREEN_WIDTH_BOT && ty < SCREEN_HEIGHT)
|
||||
DrawPixel(BOT_SCREEN, tx, ty, COLOR_BRIGHTYELLOW);
|
||||
DrawStringF(BOT_SCREEN, 16, 16, COLOR_STD_FONT, COLOR_STD_BG,
|
||||
"Current touchscreen coordinates: %3.3d, %3.3d", tx, ty);
|
||||
pressed = HID_ReadState();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool CalibrateTouchFromFlash(void) {
|
||||
HID_CalibrationData data[2];
|
||||
|
||||
|
@ -3,5 +3,4 @@
|
||||
#include "common.h"
|
||||
|
||||
bool ShowTouchCalibrationDialog(void);
|
||||
void ShowTouchPlayground(void);
|
||||
bool CalibrateTouchFromFlash(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user