I just started to develop applications for my vivoactive 4, and it took me a long time to understand that menu button for my watch is the same as back button but with extra hold. I got it from %APPDATA%\Garmin\ConnectIQ\Devices\vivoactive4\simulator.json
:
"keys": [
{
"id": "enter",
"location": {
"height": 59,
"width": 35,
"x": 330,
"y": 154
}
},
{
"behavior": "onMenu",
"id": "menu",
"isHold": true,
"location": {
"height": 59,
"width": 35,
"x": 330,
"y": 334
}
},
{
"behavior": "onBack",
"id": "esc",
"location": {
"height": 59,
"width": 35,
"x": 330,
"y": 334
}
}
],
However, what I am interested in is whether I can replicate those events without having to press my mouse at certain locations in the simulator, i.e., are there keyboard keys that send the events corresponding to WatchUi.KEY_*
? My understanding is that <Enter>
maps to KEY_ENTER
and <ESC>
maps to KEY_ESC
, but what about the others? Is there a file in SDK describing that mapping?
Thanks a lot!