libfxcg icon indicating copy to clipboard operation
libfxcg copied to clipboard

Use Menu button instead of EXE button

Open Whyaskyoume opened this issue 4 years ago • 1 comments

In examples/skeleton/example/example.c you use the exe key to close the add-on, but if you use the menu button, you can open the add-on more often on FX- CG50.

KEY__CTRL__MENU

Whyaskyoume avatar Sep 20 '21 08:09 Whyaskyoume

This is not really an issue: the example uses GetKey in a loop. If you press MENU whilst this is running, the main menu is opened. If you press EXE, GetKey exits and then the loop is breaked from and the addin returns. On addin return, the OS opens the main menu.

These extra steps on pressing EXE are part of, if not the, reason why MENU is faster. This is just how the example works. Instead, the example could just run GetKey and not do anything on EXE, but this wouldn't be as much of an example of how to program on the addin.

Therefore, I don't think this is an issue and should probably be closed.

dr-carlos avatar May 21 '22 05:05 dr-carlos