vice.janicek.co API

Make a JSON URL fragment to pass the desired configuration.

URL's

Fragment

{
    "controlPort1": "<joystick, paddle>",
    "controlPort2": "<joystick, paddle>",
    "primaryControlPort": "<1, 2>",
    "keys": {"<key code>": "<label>"},
    "docs": "",
    "files": {"<name>": "<base 64 data>"},
    "vice": {"<parameter>": "<value>"}
}

C64 Key Codes

LEFT ARROW, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, PLUS, MINUS, POUND, CLR HOME, INST DEL,
CTRL, Q, W, E, R, T, Y, U, I, O, P, @, *, UP ARROW,
RUN STOP, SHIFT LOCK, A, S, D, F, G, H, J, K, L, :, ;, =, RETURN,
CBM, LEFT SHIFT, Z, X, C, V, B, N, M, ,, ., /, RIGHT SHIFT, CRSR UP, CRSR LEFT, CRSR RIGHT, CRSR DOWN,
SPACE, F1, F2, F3, F4, F5, F6, F7, F8 

Example

http://vice.janicek.co/c64/#
{
    "controlPort2": "joystick",
    "primaryControlPort": 2,
    "keys": {"A": "Attack!"},
    "docs": "Press fire button to jump and a to attack.",
    "files": {"disk1.d64": "aHR0cDovL1JldHJvUGxheS5jbw=="},
    "vice": {"-autostart": "disk1.d64"}
}