From 5c02964085e60acfa67d5d539dac1d28ae8cda0b Mon Sep 17 00:00:00 2001 From: "Matthias L. Jugel" Date: Wed, 2 Aug 2017 19:19:53 +0200 Subject: [PATCH] fix shake gesture --- libs/core/dal.d.ts | 9 +++++---- libs/core/enums.d.ts | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libs/core/dal.d.ts b/libs/core/dal.d.ts index 5dec6e1f..466fc550 100644 --- a/libs/core/dal.d.ts +++ b/libs/core/dal.d.ts @@ -420,10 +420,11 @@ declare const enum DAL { MICROBIT_ACCELEROMETER_EVT_FACE_UP = 5, MICROBIT_ACCELEROMETER_EVT_FACE_DOWN = 6, MICROBIT_ACCELEROMETER_EVT_FREEFALL = 7, - MICROBIT_ACCELEROMETER_EVT_3G = 8, - MICROBIT_ACCELEROMETER_EVT_6G = 9, - MICROBIT_ACCELEROMETER_EVT_8G = 10, - MICROBIT_ACCELEROMETER_EVT_SHAKE = 11, + MICROBIT_ACCELEROMETER_EVT_2G = 8, + MICROBIT_ACCELEROMETER_EVT_3G = 9, + MICROBIT_ACCELEROMETER_EVT_6G = 10, + MICROBIT_ACCELEROMETER_EVT_8G = 11, + MICROBIT_ACCELEROMETER_EVT_SHAKE = 12, MICROBIT_ACCELEROMETER_REST_TOLERANCE = 200, MICROBIT_ACCELEROMETER_TILT_TOLERANCE = 200, MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE = 400, diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index a7b0d692..31633238 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -70,7 +70,7 @@ declare namespace basic { * Raised when shaken */ //% block=shake - Shake = 11, // MICROBIT_ACCELEROMETER_EVT_SHAKE + Shake = 12, // MICROBIT_ACCELEROMETER_EVT_SHAKE /** * Raised when the logo is upward and the screen is vertical */ @@ -110,12 +110,12 @@ declare namespace basic { * Raised when a 3G shock is detected */ //% block="3g" - ThreeG = 8, // MICROBIT_ACCELEROMETER_EVT_3G + ThreeG = 9, // MICROBIT_ACCELEROMETER_EVT_3G /** * Raised when a 6G shock is detected */ //% block="6g" - SixG = 9, // MICROBIT_ACCELEROMETER_EVT_6G + SixG = 10, // MICROBIT_ACCELEROMETER_EVT_6G } declare namespace input { }