mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
add info re touch event xy.type
This commit is contained in:
parent
9841d5401d
commit
d41aa58ab5
@ -457,7 +457,7 @@ type TouchCallback = (button: number, xy?: { x: number, y: number }) => void;
|
||||
"name" : "touch",
|
||||
"params" : [
|
||||
["button","int","`1` for left, `2` for right"],
|
||||
["xy","JsVar","Object of form `{x,y}` containing touch coordinates (if the device supports full touch). Clipped to 0..175 (LCD pixel coordinates) on firmware 2v13 and later."]
|
||||
["xy","JsVar","Object of form `{x,y,type}` containing touch coordinates (if the device supports full touch). Clipped to 0..175 (LCD pixel coordinates) on firmware 2v13 and later.`type` is only available on Bangle.js 2 and is an integer, either 0 for swift touches or 2 for longer ones."]
|
||||
],
|
||||
"ifdef" : "BANGLEJS",
|
||||
"typescript" : "on(event: \"touch\", callback: TouchCallback): void;"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user