How do you get key combinations in MakeCode keyboard extenti
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext
johnpark wrote:Hi -- I think you're correct, that's a beta feature, all you need to do is add "beta" to the url like this: https://makecode.adafruit.com/beta#editor
input.pinA1.onEvent(ButtonEvent.LongClick, function () {
pause(100)
light.showAnimation(light.rainbowAnimation, 2000)
light.setAll(0x000000)
})
input.pinA1.onEvent(ButtonEvent.Click, function () {
if (ledon == 0) {
pause(100)
light.setAll(0x00ff00)
gamepad.setButton(GamepadButton.Up, false)
pause(100)
keyboard.type("A", KeyboardModifierKey.ShiftAlt)
ledon = 1
pause(100)
} else {
pause(100)
light.setAll(0xff0000)
gamepad.setButton(GamepadButton.Up, true)
pause(100)
keyboard.type("A", KeyboardModifierKey.ShiftAlt)
ledon = 0
pause(100)
}
})
let ledon = 0
light.showAnimation(light.rainbowAnimation, 2000)
light.setAll(0x00ffff)
Re: How do you get key combinations in MakeCode keyboard ext
Re: How do you get key combinations in MakeCode keyboard ext