Rebekah Kissoon
Created April 21, 2020

Impossible Controller

This is a controller that makes any game difficult to play.

10
Impossible Controller

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Code

Untitled file

JavaScript
input.buttonA.onEvent(ButtonEvent.Click, function () {
    keyboard.key(" ", KeyboardKeyEvent.Press)
})
input.buttonB.onEvent(ButtonEvent.Down, function () {
    keyboard.functionKey(KeyboardFunctionKey.UpArrow, KeyboardKeyEvent.Down)
})
input.onGesture(Gesture.TiltLeft, function () {
    keyboard.functionKey(KeyboardFunctionKey.LeftArrow, KeyboardKeyEvent.Press)
})
input.onLightConditionChanged(LightCondition.Bright, function () {
    keyboard.functionKey(KeyboardFunctionKey.DownArrow, KeyboardKeyEvent.Press)
})
input.onGesture(Gesture.TiltRight, function () {
    keyboard.functionKey(KeyboardFunctionKey.RightArrow, KeyboardKeyEvent.Press)
})

Credits

Rebekah Kissoon
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.