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:
- 2:7e88b89dcca0
- Parent:
- 1:3b9ae1dbcdcf
- Child:
- 3:b6e9850d3e76
--- a/microbit_switch_if.h Mon Sep 17 06:27:25 2018 +0000
+++ b/microbit_switch_if.h Mon Sep 17 06:57:10 2018 +0000
@@ -29,7 +29,7 @@
#define MODIF_CTRL 0x100
#define MODIF_SHIFT 0x200
-#define MODIF_ALT 0x400 /* alt or option */
+#define MODIF_OPTION 0x400 /* alt or option */
#define MODIF_COMMAND 0x800 /* command or Windows */
const int keyCodeGroup0[3] = { // Button A, Button B, Button A&B
@@ -41,7 +41,7 @@
{KEY_SPACE, KEY_ENTER},
{RIGHT_ARROW, LEFT_ARROW},
{DOWN_ARROW, UP_ARROW},
- {MODIF_ALT + DOWN_ARROW, MODIF_ALT + UP_ARROW},
+ {MODIF_OPTION + DOWN_ARROW, MODIF_OPTION + UP_ARROW},
{'1', '3'},
{'h', 'j'}
};
@@ -50,7 +50,7 @@
RIGHT_ARROW,
LEFT_ARROW,
MODIF_COMMAND + 'r', // 再読み込み
- MODIF_ALT + DOWN_ARROW
+ MODIF_OPTION + DOWN_ARROW
};
//in "BLE_API\Keyboad_types.h"