aboutsummaryrefslogtreecommitdiff
path: root/controls.wren
blob: e8d9d81011766960aa26a5b9ae671b07071e71f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import "input" for Keyboard

class Controls {
    construct new() {

    }

    static isKeyDown(keyCode) {
        return Keyboard.isKeyDown(keyCode)
    }

    static justPressed(keyCode) {
        return Keyboard[keyCode].justPressed
    }
}