PROBLEMS MAPPING XBOX CONTROLLER
Greetings
I wrote this supercollider code, to track my XBox 360 on Supercollider 3.10
LID.findAvailable; LID.postAvailable;
d = LID.open(path: "/dev/input/event7"); d.makeGui;
LID.register('Microsoft X-Box 360 pad', LID.mouseDeviceSpec);
LID.findAvailable
d.debug_( true );
d.dumpCaps;
(
LID.register('Microsoft X-Box 360 pad', (
A: #[0x00000015, 0x00000050],
B: #[0x00000015, 0x00000051],
C: #[0x00000015, 0x00000058],
D: #[0x00000015, 0x00000059],
E: #[0x00000015, 0x0000005A],
F: #[0x00000015, 0x0000006A],
G: #[0x00000000, 0x00000000],
H: #[0x00000000, 0x00000001],
I: #[0x00000003, 0x00000000],
J: #[0x00000003, 0x00000001],
K: #[0x00000003, 0x00000002],
L: #[0x00000003, 0x00000003],
M: #[0x00000003, 0x00000004],
N: #[0x00000003, 0x00000005],
O: #[0x00000003, 0x00000010],
P: #[0x00000003, 0x00000011],
Q: #[0x00000001, 0x00000130],
R: #[0x00000001, 0x00000131],
S: #[0x00000001, 0x00000133],
T: #[0x00000001, 0x00000134],
U: #[0x00000001, 0x00000136],
V: #[0x00000001, 0x00000137],
W: #[0x00000001, 0x0000013A],
X: #[0x00000001, 0x0000013B],
Y: #[0x00000001, 0x0000013C],
Z: #[0x00000001, 0x0000013D],
AB: #[0x00000001, 0x0000013E]
));
)
d.close;
I have two question:
- first how do i register my buttonns correctly?
- how do I map my controllers to NDefs on a proper way
regarding the first question:
- i first identified my controllers
- I posted them
- I opened them
then:
- i tried to register my controllers by identifying them with LID.dumpCaps
finally:
- that didn’t work pretty fine, as i am not currently being able to inspect the activity of these controllers
- the UI keeps not showing identifying things
finally:
- I would need to map this to 5 NDefs, containing a TGrain or Warp1 synthesis definition, with the possibility to allocate 5 or 6 pre-recorded buffers.
Looking Forwards
Kind Regards
T.