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:
@@ -28,21 +28,17 @@ Page keyb_num
|
||||
}
|
||||
|
||||
Touch Press Event
|
||||
aux.txt="{\"page\": \"keyb_num\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints aux.txt,0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
aux.txt="{\"page\": \"keyb_num\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+entity.txt+"\"}"
|
||||
printh 92
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints aux.txt,0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Variable (int32) page_id
|
||||
@@ -129,6 +125,11 @@ Button b1
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b1.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button bclose
|
||||
Attributes
|
||||
@@ -157,6 +158,11 @@ Button b2
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b2.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b3
|
||||
Attributes
|
||||
@@ -171,6 +177,11 @@ Button b3
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b3.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b4
|
||||
Attributes
|
||||
@@ -185,6 +196,11 @@ Button b4
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b4.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b5
|
||||
Attributes
|
||||
@@ -199,6 +215,11 @@ Button b5
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b5.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b6
|
||||
Attributes
|
||||
@@ -213,6 +234,11 @@ Button b6
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b6.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b7
|
||||
Attributes
|
||||
@@ -227,6 +253,11 @@ Button b7
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b7.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b8
|
||||
Attributes
|
||||
@@ -241,6 +272,11 @@ Button b8
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b8.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b9
|
||||
Attributes
|
||||
@@ -255,6 +291,11 @@ Button b9
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b9.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button bclear
|
||||
Attributes
|
||||
@@ -269,6 +310,11 @@ Button bclear
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt=""
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button b0
|
||||
Attributes
|
||||
@@ -283,6 +329,11 @@ Button b0
|
||||
Events
|
||||
Touch Release Event
|
||||
pin.txt+=b0.txt
|
||||
printh 91
|
||||
prints "touchevent",0
|
||||
printh 00
|
||||
prints rand,0
|
||||
printh FF FF FF
|
||||
|
||||
Button benter
|
||||
Attributes
|
||||
|
||||
Reference in New Issue
Block a user