X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fshuttle.C;h=df2850dc8e4f22a5c6915e7062ddb151378b74d4;hp=22adeaf01180c29609e9d3280870313bc84ad403;hb=94fc059e6ed3f77f20531338cbb03bdb3b4d9eab;hpb=2e28d225c343f02500594688bf8d0528df40600c diff --git a/cinelerra-5.1/cinelerra/shuttle.C b/cinelerra-5.1/cinelerra/shuttle.C index 22adeaf0..df2850dc 100644 --- a/cinelerra-5.1/cinelerra/shuttle.C +++ b/cinelerra-5.1/cinelerra/shuttle.C @@ -619,6 +619,8 @@ static const struct shuttle_dev { 0x0b33, 0x0030 }, { "/dev/input/by-id/usb-Contour_Design_ShuttlePro-event-if00", 0x0b33, 0x0030 }, + { "/dev/input/by-id/usb-Contour_Design_ShuttlePRO_v2-event-joystick", + 0x0b33, 0x0030 }, }; #ifdef HAVE_SHUTTLE_USB @@ -847,7 +849,7 @@ void Shuttle::run() while( devsh && !done ) { int len = 0; static const int IN_ENDPOINT = 0x81; - unsigned char dat[BCSTRLEN]; + unsigned char dat[5]; int ret = libusb_interrupt_transfer(devsh, IN_ENDPOINT, dat, sizeof(dat), &len, 100); if( ret != 0 ) {