fixing text scroll on simulator

This commit is contained in:
Peli de Halleux
2016-04-14 21:42:02 -07:00
parent ad98c1aaa6
commit db4692843f
3 changed files with 4 additions and 9 deletions

View File

@ -105,9 +105,7 @@ namespace input {
* @param body TODO
*/
//% help=input/on-button-pressed weight=85
//% blockId=device_button_event
//% block="on button|%NAME|pressed"
//% icon="\uf192"
//% blockId=device_button_event block="on button|%NAME|pressed" icon="\uf192"
void onButtonPressed(Button button, Action body) {
registerWithDal((int)button, MICROBIT_BUTTON_EVT_CLICK, body);
}

View File

@ -201,9 +201,7 @@ declare namespace input {
* @param body TODO
*/
//% help=input/on-button-pressed weight=85
//% blockId=device_button_event
//% block="on button|%NAME|pressed"
//% icon="\uf192" shim=input::onButtonPressed
//% blockId=device_button_event block="on button|%NAME|pressed" icon="\uf192" shim=input::onButtonPressed
function onButtonPressed(button: Button, body: () => void): void;
/**