58 lines
853 B
JavaScript
58 lines
853 B
JavaScript
|
// Yeah hi /r/badcode.
|
||
|
// Anyway, because nazi localstorage flat out refuses to store arrays:
|
||
|
var DEFAULT_KEYBINDINGS = {
|
||
|
0:{ action: "fitw",
|
||
|
key: 'w',
|
||
|
modifiers: []
|
||
|
},
|
||
|
1:{
|
||
|
action: "fith",
|
||
|
key: 'e',
|
||
|
modifiers: []
|
||
|
},
|
||
|
2: {
|
||
|
action: "reset",
|
||
|
key: 'r',
|
||
|
modifiers: []
|
||
|
},
|
||
|
3: {
|
||
|
action: "zoom",
|
||
|
key: "z",
|
||
|
modifiers: []
|
||
|
},
|
||
|
4: {
|
||
|
action: "unzoom",
|
||
|
key: "u",
|
||
|
modifiers: []
|
||
|
},
|
||
|
5: {
|
||
|
action: "char",
|
||
|
targetAR: (21/9),
|
||
|
key: "d",
|
||
|
modifiers: []
|
||
|
},
|
||
|
6: {
|
||
|
action: "char",
|
||
|
targetAR: (16/9),
|
||
|
key: "s",
|
||
|
modifiers: []
|
||
|
},
|
||
|
7: {
|
||
|
action: "char",
|
||
|
targetAR: (16/10),
|
||
|
key: "x",
|
||
|
modifiers: []
|
||
|
},
|
||
|
8: {
|
||
|
action: "char",
|
||
|
targetAR: (4/3),
|
||
|
key: "c",
|
||
|
modifiers: []
|
||
|
},
|
||
|
9: {
|
||
|
action: "autoar",
|
||
|
key: "a",
|
||
|
modifiers: []
|
||
|
}
|
||
|
};
|