Simulator buttons?

Former Member
Former Member
Hi,

I am trying to use the fr920xt simulator, but can't find the buttons.

I find onPreviousPage on the back button of the simulator, but no other buttons register.

With the same code and square_watch, I find:
- onPreviousPage when swiping left
- onNextPage when swiping right
- onPrevious page when I press the "turn back" button below the watch (should be onBack?)
- onMenu when I press the hamburger menu below the watch.

Could you please make all buttons available on for the fr920xt simulator, and document which should be where? (I suspect the back is mapped wrong for both fr920xt and square_watch).

-J
  • Thanks for bringing this to our attention!

    You're correct that the 920 currently maps the back button to onPreviousPage().The menu button maps to onMenu(), but you must press and hold the button to trigger that behavior. Right now, the up and down buttons are not currently mapped to any specific behaviors, and this is something that should be addressed.

    The vision of Connect IQ is to allow developers to use behaviors so they don't have to worry about specific button mapping and can expect consistent behaviors across platforms. Clearly, the way the 920 button mapping is set up right now goes against that vision, so I have filed an issue to have the 920 button-to-behavior mapping revisited.
  • Former Member
    Former Member over 10 years ago
    Thank you!
  • Former Member
    Former Member over 10 years ago
    Thanks for bringing this to our attention!
    The vision of Connect IQ is to allow developers to use behaviors so they don't have to worry about specific button mapping and can expect consistent behaviors across platforms. Clearly, the way the 920 button mapping is set up right now goes against that vision, so I have filed an issue to have the 920 button-to-behavior mapping revisited.


    Do you maybe have an update on this? It's no problem to update the devices.xml, but I'd have to be sure how the mapping will be on the actual device. So if you know how the mapping will be, can you please post it on the forum?
  • I don't have any specifics yet. Once things are settled, I'd be happy to provide details.
  • Former Member
    Former Member over 10 years ago
    As stated, these aren't set in stone yet, but if you are looking to modify the devices.xml, this should get you pretty close to where things will end up on Fenix 3 FR920XT and VivoActive.

    I expect onPreviousPage and onNextPage to map to the up and down keys for Fenix 3 and FR920XT (I'm unsure which direction will be which). They should remain unchanged on VivoActive on swipe left and right.

    All 3 products have a Back key, which I expect to be mapped to the onBack behavior.

    I expect the onMenu behaviro to map to the devices menu keys. (Fenix 3 - Hold the up key, VivoActive - 3 lines button in the lower right corner, FR920XT hold the 3 dot button in the lower left corner.)

    We will provide the official mappings as soon as possible.
  • Any update on this yet?

    I'm seeing the Back button mapped to onPreviousPage in the Vivoactive simulator, but on the actual device it appears to be mapped to onBack.

    I guess the best practice for now is to just switch on the device string and hardcode the actual keys pressed?
  • This has been fixed and will be in the next SDK release. For now, you can modify <sdk folder>/bin/devices.xml to get the correct behavior (or you can wait for the next release). In the vivoactive_sim section, look for

    <key id="ESC" behavior="PREVIOUS_PAGE">


    and replace it with

    <key id="ESC" behavior="ON_BACK">
  • Former Member
    Former Member over 9 years ago
    The key mappings in the simulator will be updated to properly match devices in the next release of the SDK.