Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: microbit_switch_if.h
- Revision:
- 1:3b9ae1dbcdcf
- Parent:
- 0:28fb3e9ef81a
- Child:
- 2:7e88b89dcca0
--- a/microbit_switch_if.h Mon Sep 17 02:48:51 2018 +0000
+++ b/microbit_switch_if.h Mon Sep 17 06:27:25 2018 +0000
@@ -32,22 +32,24 @@
#define MODIF_ALT 0x400 /* alt or option */
#define MODIF_COMMAND 0x800 /* command or Windows */
-const int keyCodeGroup0[2] = { // Button A B
- 'A', 'B'
+const int keyCodeGroup0[3] = { // Button A, Button B, Button A&B
+ 'A',
+ 'B',
+ MODIF_COMMAND + 'h' // アプリ終了
};
const int keyCodeGroup1[NUM_GROUP1][2] = { // Switch 1 2
{KEY_SPACE, KEY_ENTER},
- {MODIF_ALT + DOWN_ARROW, MODIF_ALT + UP_ARROW},
{RIGHT_ARROW, LEFT_ARROW},
{DOWN_ARROW, UP_ARROW},
+ {MODIF_ALT + DOWN_ARROW, MODIF_ALT + UP_ARROW},
{'1', '3'},
{'h', 'j'}
};
-const int keyCodeGroup2[NUM_GROUP2]= { // Switch 2
+const int keyCodeGroup2[NUM_GROUP2]= { // Switch 3
KEY_TAB,
- MODIF_COMMAND + 'r', // 再読み込み
RIGHT_ARROW,
LEFT_ARROW,
+ MODIF_COMMAND + 'r', // 再読み込み
MODIF_ALT + DOWN_ARROW
};