-
Notifications
You must be signed in to change notification settings - Fork 0
/
katana.s2e
30 lines (29 loc) · 1.27 KB
/
katana.s2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ "extensionName": "Katana",
"extensionPort": 31337,
"blockSpecs": [
["r", "Joystick %m.joysticks %m.axis", "joystick", "L", "X"],
["r", "Joystick-direction %m.joysticks", "angle", "L"],
["r", "Trigger %m.joysticks", "trigger", "L"],
["b", "Analog", "analog"],
["b", "Button %m.buttons", "button", "up"],
[" ", "Rumble %m.joysticks %n.intensity % %n.duration seconds", "rumble", "L", 100, 1],
["w", "Rumble & Wait %m.joysticks %n.intensity % %n.duration seconds", "rumblewait", "L", 100, 1],
[" ", "Stop Rumbling %m.joysticks", "stoprumble", "L"],
],
"menus": {
"joysticks": ["L", "R"],
"buttons": ["up", "down", "left", "right",
"x", "o", "triangle", "square",
"L1", "L2", "L3", "R1", "R2", "R3",
"select", "start"],
"axis": ["X", "Y"],
"buttonsComment": ["up", "down", "left", "right",
"x", "o", "triangle", "square",
"L1", "L2", "L3", "R1", "R2", "R3",
"select", "start" ],
},
}
# Helper app needs to implement /poll, /reset_all, /rumble/duration
# poll response can be _problem Scratch couldn't find your gamepad.
# Helper can be written in any language that supports server sockets: python,
# java, haskell(windows?).