diff --git a/hid-xpadneo/src/xpadneo.h b/hid-xpadneo/src/xpadneo.h index 1cf70f61..5caf4e3b 100644 --- a/hid-xpadneo/src/xpadneo.h +++ b/hid-xpadneo/src/xpadneo.h @@ -203,7 +203,7 @@ extern int xpadneo_init_keyboard(struct xpadneo_devdata *); extern int xpadneo_init_mouse(struct xpadneo_devdata *); extern int xpadneo_init_synthetic(struct xpadneo_devdata *, char *, struct input_dev **); extern int xpadneo_mouse_event(struct xpadneo_devdata *, struct hid_usage *, __s32); -extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *, struct hid_report *, u8 *, int) +extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *, struct hid_report *, u8 *, int); extern void xpadneo_mouse_report(struct timer_list *); extern void xpadneo_toggle_mouse(struct xpadneo_devdata *); diff --git a/hid-xpadneo/src/xpadneo/mouse.c b/hid-xpadneo/src/xpadneo/mouse.c index b1319831..569d64bd 100644 --- a/hid-xpadneo/src/xpadneo/mouse.c +++ b/hid-xpadneo/src/xpadneo/mouse.c @@ -41,16 +41,15 @@ extern void xpadneo_mouse_report(struct timer_list *t) } -#define rescale_axis(v,d) (((v)<(d)&&(v)>-(d))?0:(32768*((v)>0?(v)-(d):(v)+(d))/(32768-(d)))) extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *xdata, struct hid_report *report, - u8 *data, int reportsize) + u8 *data, int reportsize) { if (!xdata->mouse_mode) return 0; -//todo! + return 0; //todo! } - +#define rescale_axis(v,d) (((v)<(d)&&(v)>-(d))?0:(32768*((v)>0?(v)-(d):(v)+(d))/(32768-(d)))) extern int xpadneo_mouse_event(struct xpadneo_devdata *xdata, struct hid_usage *usage, __s32 value) { if (!xdata->mouse_mode)