[PD] HID seg fault on linux - debugging

august august at alien.mur.at
Sun Jun 5 20:46:37 CEST 2005



'nother thing.  it seems to crash whenever it gets a null reference from
ev_abs...so here is the else statement I have in hid_linux.c for that code
chunk:

else
{
 	if (event_names[hid_input_event.type][hid_input_event.code] == NULL) {
                return 0;
        }
        if (hid_input_event.code < 41) {
                 strcpy(hid_code, event_names[hid_input_event.type][hid_input_event.code] );
        }
}


another question: is there any benefit to using the HID descriptor names
such as abs_x, abs_y, etc.....or would it be possible to just use numbers?
it seems to me that the usb devices are pretty random in what controls
they assign to what descriptor.  and, AFAIK, the "hi" object in MAX  just
outputs lists with numbers for the initial control descriptors.


-august.




More information about the Pd-list mailing list