Simplify touchevent engine

The touch event is used only for the sleeping engine (it will be used for dimming later) and it was transferring all the json info with page name, component, entity, etc.
This was replaced by a simple random integer with no meaning other than "the screen was touched, reset the timer".
This commit is contained in:
Edward Firmo
2023-09-11 12:17:10 +02:00
parent f1e3dc49e6
commit 7452dfd2bb
89 changed files with 581 additions and 496 deletions

View File

@@ -27,19 +27,17 @@ Page notification
}
Touch Press Event
printh 92
printh 91
prints "touchevent",0
printh 00
prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
prints rand,0
printh FF FF FF
Touch Release Event
printh 92
printh 91
prints "touchevent",0
printh 00
prints "{\"page\": \"notification\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
prints rand,0
printh FF FF FF
Variable (string) lastclick