205 lines
4.7 KiB
HTML
205 lines
4.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Cimdit Profile generator</title>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
<style type="text/css">
|
||
|
<%= grunt.file.read('tmp/default.css') %>
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form><div>
|
||
|
<textarea id="jsoncounter" class="lineCounter" wrap="off" readonly>1</textarea>
|
||
|
<textarea id="json" class="codeEditor" wrap="off">
|
||
|
[
|
||
|
{
|
||
|
"name": "Joystick",
|
||
|
"customimage": "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007FFFFFFC000000000000000000000001FFFFFFFF800000000000000000000003FFFFFFFFC00000000000000000000007FFFFFFFFE0000000000000000000000FE0000007F0000000000000000000001F80000001F8000000000000000000001F1A000000F8000000000000000000003E1E00000E7C000000000000000000003E1E00001F7C000000000000000000003C5F80001F3C000000000000000000003CFFC0000E3C000000000000000000003CFFC000E03C000000000000000000003C7F0001E07C000000000000000000003E1E0000F07C000000000000000000003E1E1FF8E078000000000000000000001F143FFC00F8000000000000000000001F807FFE01F8000000000000000000000FD1FFFF87F00000000000000000000007FFF81FFFE00000000000000000000003FFF00FFFC00000000000000000000001FFE007FF8000000000000000000000007F8001FE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"mappedbuttons": [
|
||
|
{
|
||
|
"source": 20,
|
||
|
"type": "JOYSTICK_BUTTON",
|
||
|
"target": 1
|
||
|
},
|
||
|
{
|
||
|
"source": 62,
|
||
|
"type": "SWITCH_PROFILE"
|
||
|
},
|
||
|
{
|
||
|
"source": 61,
|
||
|
"type": "MACRO_PRESS",
|
||
|
"macro": 0
|
||
|
},
|
||
|
{
|
||
|
"source": 60,
|
||
|
"type": "MACRO_PRESS",
|
||
|
"macro": 1
|
||
|
},
|
||
|
{
|
||
|
"source": 59,
|
||
|
"type": "MACRO_PRESS",
|
||
|
"macro": 2
|
||
|
},
|
||
|
{
|
||
|
"source": 59,
|
||
|
"type": "MACRO_RELEASE",
|
||
|
"macro": 3
|
||
|
},
|
||
|
{
|
||
|
"source": 58,
|
||
|
"type": "MACRO_PRESS",
|
||
|
"macro": 4
|
||
|
},
|
||
|
{
|
||
|
"source": 58,
|
||
|
"type": "MACRO_RELEASE",
|
||
|
"macro": 5
|
||
|
}
|
||
|
],
|
||
|
"mappedaxis": [
|
||
|
{
|
||
|
"source": 0,
|
||
|
"type": "JOYSTICK_AXIS",
|
||
|
"axis": 1
|
||
|
},
|
||
|
{
|
||
|
"source": 1,
|
||
|
"type": "JOYSTICK_AXIS",
|
||
|
"axis": 2
|
||
|
},
|
||
|
{
|
||
|
"source": 2,
|
||
|
"type": "JOYSTICK_AXIS",
|
||
|
"axis": 3
|
||
|
},
|
||
|
{
|
||
|
"source": 3,
|
||
|
"type": "JOYSTICK_AXIS",
|
||
|
"axis": 4
|
||
|
}
|
||
|
],
|
||
|
"mappedrotary": [
|
||
|
{
|
||
|
"source": 0,
|
||
|
"type": "PREV_PROFILE"
|
||
|
},
|
||
|
{
|
||
|
"source": 1,
|
||
|
"type": "NEXT_PROFILE"
|
||
|
}
|
||
|
],
|
||
|
"macros": [
|
||
|
[
|
||
|
"MACRO_SPEED",
|
||
|
10,
|
||
|
"MACRO_TYPE",
|
||
|
"test"
|
||
|
],
|
||
|
[
|
||
|
"MACRO_SPEED",
|
||
|
10,
|
||
|
"MACRO_KEY_PRESS",
|
||
|
"KEY_LEFT_SHIFT",
|
||
|
"t",
|
||
|
"MACRO_KEY_RELEASE",
|
||
|
"t",
|
||
|
"KEY_LEFT_SHIFT",
|
||
|
"MACRO_TYPE",
|
||
|
"est"
|
||
|
],
|
||
|
[
|
||
|
"MACRO_SPEED",
|
||
|
10,
|
||
|
"MACRO_TYPE",
|
||
|
"te",
|
||
|
"MACRO_JOY_PRESS",
|
||
|
2,
|
||
|
"MACRO_DELAY",
|
||
|
2000,
|
||
|
"MACRO_JOY_RELEASE",
|
||
|
2,
|
||
|
"MACRO_TYPE",
|
||
|
"s"
|
||
|
],
|
||
|
[
|
||
|
"MACRO_TYPE",
|
||
|
"t"
|
||
|
],
|
||
|
[
|
||
|
"MACRO_MOUSE_PRESS",
|
||
|
2,
|
||
|
"MACRO_KEY_PRESS",
|
||
|
"KEY_LEFT_SHIFT",
|
||
|
"MACRO_MOUSE_REL_X_AXIS",
|
||
|
0,
|
||
|
5,
|
||
|
"MACRO_MOUSE_REL_Y_AXIS",
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
[
|
||
|
"MACRO_MOUSE_REL_X_AXIS",
|
||
|
-1,
|
||
|
"MACRO_MOUSE_REL_Y_AXIS",
|
||
|
-1,
|
||
|
"MACRO_KEY_RELEASE",
|
||
|
"KEY_LEFT_SHIFT",
|
||
|
"MACRO_MOUSE_RELEASE",
|
||
|
2
|
||
|
]
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "Mouse",
|
||
|
"mappedbuttons": [
|
||
|
{
|
||
|
"source": 62,
|
||
|
"type": "SWITCH_PROFILE"
|
||
|
},
|
||
|
{
|
||
|
"source": 15,
|
||
|
"type": "MOUSE_REL_X_AXIS",
|
||
|
"value": 25
|
||
|
},
|
||
|
{
|
||
|
"source": 23,
|
||
|
"type": "MOUSE_REL_Y_AXIS",
|
||
|
"value": -25
|
||
|
}
|
||
|
],
|
||
|
"mappedaxis": [
|
||
|
{
|
||
|
"source": 0,
|
||
|
"type": "MOUSE_REL_X_AXIS",
|
||
|
"value": 50
|
||
|
},
|
||
|
{
|
||
|
"source": 1,
|
||
|
"type": "MOUSE_REL_Y_AXIS",
|
||
|
"value": 50
|
||
|
}
|
||
|
],
|
||
|
"mappedrotary": [
|
||
|
{
|
||
|
"source": 0,
|
||
|
"type": "PREV_PROFILE"
|
||
|
},
|
||
|
{
|
||
|
"source": 1,
|
||
|
"type": "NEXT_PROFILE"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
</textarea>
|
||
|
<p><button id="generatestring" class="button">Generate String</button></p>
|
||
|
<p id="error"></p>
|
||
|
<textarea id="string"></textarea>
|
||
|
<p><button id="generatejson" class="button">Generate Json</button></p>
|
||
|
</div></form>
|
||
|
<script type="text/javascript">
|
||
|
<%= grunt.file.read('tmp/bootstrap.out') %>
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|