Closed okyeron closed 4 years ago
Ok - further checking - I AM getting the wiimote to show up as /dev/input/event*
devices, but now I realize that device_monitor.c
is ONLY looking at the usb subsystem, so it won't work without some more hacking
Thus we would need to extend device_monitor to add the bluetooth subsystem?
Beyond the Wiimote use, supporting keyboard input via bluetooth would allow input to ORCA and any other text based scripts that get developed and fewer cables is always nice :)
pinging to @catfact to see if there's any suggestions here.
I tried to extend device_monitor.c
to look alternately look at bluetooth adding the following
else if (udev_device_get_parent_with_subsystem_devtype(dev, "bluetooth", NULL)) {
handle_device(dev);
}
and again around line 250
but it pretty much crashed matron everytime and I got kinda stumped.
you can certainly try bypassing the usb test as in this PR: https://github.com/monome/norns/pull/532/files
in my view the closure of this PR was abortive; i have questions and issues with it but would be pleased to hear constructive feedback. i think it will mean we'll get a bunch of events from subsystems that we don't actually know how to work with in lua; that's OK but probably needs more work
This came up in a conversation today so I started poking around and now I'm looking for a little help
RasPI 3b has Bluetooth built-in. Norns hardware could have BT with a USB dongle. I'm thinking it should be possible to get the wiimote working as a HID device.
I've got my wiimote connected to raspi-norns and I'm not sure where to go next to get HID data. Looks like some mods will be needed?
after connecting the wiimote
dmesg
shows me:Best I can sort out here is that the wiimote is showing up as a
serial/tty
device and not aninput/event
that norns device_monitor would see as an HID device.Any suggestions on how I might get this to show up as HID?
do I need some kind of udev rule?