document up/down swipe

This commit is contained in:
BartS23 2022-04-10 11:24:47 +02:00
parent 6cb4048584
commit 7b038d6ba0

View File

@ -336,10 +336,11 @@ to decode `gesture` from a number into a string.
"type" : "event",
"class" : "Bangle",
"name" : "swipe",
"params" : [["direction","int","`-1` for left, `1` for right"]],
"params" : [["directionLR","int","`-1` for left, `1` for right, `0` for up/down],
["directionUD","int","`-1` for up, `1` for down", `0` for left/right]],
"ifdef" : "BANGLEJS"
}
Emitted when a swipe on the touchscreen is detected (a movement from left->right, or right->left)
Emitted when a swipe on the touchscreen is detected (a movement from left->right, right->left, down->up or up->down )
*/
/*JSON{
"type" : "event",