mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
document up/down swipe
This commit is contained in:
parent
6cb4048584
commit
7b038d6ba0
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user