touch on/off with backlight on/off is now working for TX16s, untested, but implemented for NV14

simulator for tX16s and NV14 works
This commit is contained in:
gagarinlg
2021-11-16 11:21:04 +10:00
committed by Peter Feerick
parent ced9df9510
commit 8360434516
8 changed files with 82 additions and 58 deletions
+12 -1
View File
@@ -894,11 +894,22 @@ void check_intmodule_heartbeat()
}
#endif
#if defined(HARDWARE_TOUCH)
struct TouchState simTouchState = {};
bool simTouchOccured = false;
bool touchPanelEventOccured()
{
if(simTouchOccured)
{
simTouchOccured = false;
return true;
}
return false;
}
void touchPanelRead()
struct TouchState touchPanelRead()
{
return simTouchState;
}
#endif