108 lines
2.6 KiB
Plaintext
108 lines
2.6 KiB
Plaintext
Page screensaver
|
|
Attributes
|
|
ID : 0
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : on press and release
|
|
Locked : no
|
|
Swide up page ID : disabled
|
|
Swide down page ID : disabled
|
|
Swide left page ID : disabled
|
|
Swide right page ID: disabled
|
|
|
|
Events
|
|
Preinitialize Event
|
|
vis text,0
|
|
dim=brightness_sleep
|
|
printh 92
|
|
prints "current_page",0
|
|
printh 00
|
|
prints "screensaver",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Release Event
|
|
page wakeup_page_id
|
|
|
|
Text text
|
|
Attributes
|
|
ID : 4
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : on press and release
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 1000
|
|
|
|
Events
|
|
Touch Release Event
|
|
page back_page_id
|
|
|
|
Timer swipestore
|
|
Attributes
|
|
ID : 3
|
|
Scope : local
|
|
Period (ms): 50
|
|
Enabled : no
|
|
|
|
Events
|
|
Timer Event
|
|
swipex=tch0
|
|
swipey=tch1
|
|
|
|
TouchCap wakeup
|
|
Attributes
|
|
ID : 1
|
|
Scope: local
|
|
Value: 0
|
|
|
|
Events
|
|
Touch Press Event
|
|
page wakeup_page_id
|
|
|
|
TouchCap swipe
|
|
Attributes
|
|
ID : 2
|
|
Scope: local
|
|
Value: 0
|
|
|
|
Events
|
|
Touch Press Event
|
|
swipestore.en=1 // Start swipestore timer
|
|
|
|
Touch Release Event
|
|
swipestore.en=0
|
|
// Touch has ended, x
|
|
if(tch0==0)
|
|
{
|
|
swipec=swipex-tch2
|
|
// From Left to Right
|
|
if(swipec>swipedx&&api==1)
|
|
{
|
|
page buttonpage04
|
|
}
|
|
// Right to Left
|
|
swipec2=0-swipedx
|
|
if(swipec<swipec2&&api==1)
|
|
{
|
|
page buttonpage01
|
|
}
|
|
}
|
|
// Touch has ended, y
|
|
if(tch1==0)
|
|
{
|
|
swipec=swipey-tch3
|
|
// From Up to Down
|
|
if(swipec>100&&api==1)
|
|
{
|
|
page buttonpage02
|
|
}
|
|
// Down to Up
|
|
swipec2=0-swipedy
|
|
if(swipec<-100&&api==1)
|
|
{
|
|
page buttonpage03
|
|
}
|
|
}
|
|
|