Description

Add key (constant).

Usage

Parameters

  • id {String}

    ID key

  • keycode {Integer}

    Key value

Example

    canvas.Input.addKey("F", 70);
    canvas.Input.press(Input.F, function(e) {
        // Code
    });

Discussion