Hi
I'm trying to get the input from a ps3 controller into PD. In the end I'd like to have it connect wireless, but for now I just connected via usb and tapped the PlayStation button on the controller.
This shows up in lsusb: atte@skagen:~$ lsusb | grep Sony Bus 003 Device 013: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
"cat /dev/input/js0" (as regular user) show the expected garbage when moving the controller around or touching buttons. I also get input in chuck opened with Hid.openJoystick(0), so I'm pretty sure the controller is recognized and sending stuff into the system.
In PD I trued using [hid] and sending [open XXXX( with just about everything I could think of.
So I'm hoping someone could give a hint or suggestion about what to try next, things I could have forgotten etc.
Atte
On 02/22/2014 06:33 PM, Atte wrote:
So I'm hoping someone could give a hint or suggestion about what to try next, things I could have forgotten etc.
Ok, after sending the mail, I did some further poking, and it seems [open 10] opens the controller.
atte@skagen:~$ ll /dev/input/ total 0 drwxr-xr-x 2 root root 240 Feb 22 18:14 by-id drwxr-xr-x 2 root root 220 Feb 22 18:14 by-path crw------- 1 root root 13, 64 Feb 22 11:31 event0 crw------- 1 root root 13, 65 Feb 22 11:31 event1 crw-rw----+ 1 root root 13, 74 Feb 22 18:14 event10 crw------- 1 root root 13, 66 Feb 22 11:31 event2 crw------- 1 root root 13, 67 Feb 22 11:31 event3 crw------- 1 root root 13, 68 Feb 22 11:31 event4 crw------- 1 root root 13, 69 Feb 22 11:31 event5 crw------- 1 root root 13, 70 Feb 22 11:31 event6 crw------- 1 root root 13, 71 Feb 22 11:31 event7 crw------- 1 root root 13, 72 Feb 22 11:31 event8 crw-rw-r-T 1 root video 13, 73 Feb 22 11:31 event9 crw-rw-r-T+ 1 root root 13, 0 Feb 22 18:14 js0 crw------- 1 root root 13, 63 Feb 22 11:31 mice crw------- 1 root root 13, 32 Feb 22 11:31 mouse0 crw------- 1 root root 13, 33 Feb 22 11:31 mouse1 crw------- 1 root root 13, 34 Feb 22 11:31 mouse2
Using device 10 seems like a bad idea to me (I might be wrong), since I'd expect that device number to depend on what else is plugged in and in what order. Is there a better way?
Atte
On 02/22/2014 06:54 PM, Atte wrote:
On 02/22/2014 06:33 PM, Atte wrote:
it seems
[open 10] opens the controller.
I mean "[open 10(" of course :-)
Hi,
Atte wrote:
Ok, after sending the mail, I did some further poking, and it seems [open 10] opens the controller.
Using device 10 seems like a bad idea to me (I might be wrong), since I'd expect that device number to depend on what else is plugged in and in what order. Is there a better way?
The help patch says you can open by vendor and product id.
Enjoy,
Charles
On 02/22/2014 07:22 PM, Charles Goyard wrote:
The help patch says you can open by vendor and product id.
Thanks. I already tried that, but forgot to prepend the 0x. Using [open 0x054c 0x0268( works just great!
Sorry about that :-)