ev.type = XI_DeviceValuator + (int)info->data;
ev.type = XI_DeviceValuator + (long)info->data;
send_axes(dpy, info, req, dev, first_axis, axes, n_axes)    Display *dpy;    XExtDisplayInfo *info;    xXTestFakeInputReq *req;    XDevice *dev;    int first_axis;    int *axes;    int n_axes;{    deviceValuator ev;    int n;    req->deviceid |= MORE_EVENTS;    req->length += ((n_axes + 5) / 6) * (SIZEOF(xEvent) >> 2);    ev.type = XI_DeviceValuator + (int)info->data;    ev.deviceid = dev->device_id;    ev.num_valuators = n_axes;    ev.first_valuator = first_axis;    while (n_axes > 0) {	n = n_axes;	if (n > 6)	    n = 6;	switch (n) {	case 6:	    ev.valuator5 = *(axes+5);	case 5:	    ev.valuator4 = *(axes+4);	case 4:	    ev.valuator3 = *(axes+3);	case 3:	    ev.valuator2 = *(axes+2);	case 2:	    ev.valuator1 = *(axes+1);	case 1:	    ev.valuator0 = *axes;	}	Data(dpy, (char *)&ev, SIZEOF(xEvent));	axes += n;	n_axes -= n;	ev.first_valuator += n;    }}