Skip to content

Commit 6b89563

Browse files
committed
todo!
Signed-off-by: Kai Krakow <kai@kaishome.de>
1 parent 24d694f commit 6b89563

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

hid-xpadneo/src/xpadneo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ extern int xpadneo_init_consumer(struct xpadneo_devdata *);
195195
extern int xpadneo_init_mouse(struct xpadneo_devdata *);
196196
extern int xpadneo_init_synthetic(struct xpadneo_devdata *, char *, struct input_dev **);
197197
extern int xpadneo_mouse_event(struct xpadneo_devdata *, struct hid_usage *, __s32);
198-
extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *, struct hid_report *, u8 *, int)
198+
extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *, struct hid_report *, u8 *, int);
199199
extern void xpadneo_mouse_report(struct timer_list *);
200200
extern void xpadneo_toggle_mouse(struct xpadneo_devdata *);
201201

hid-xpadneo/src/xpadneo/mouse.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@ extern void xpadneo_mouse_report(struct timer_list *t)
4141

4242
}
4343

44-
#define rescale_axis(v,d) (((v)<(d)&&(v)>-(d))?0:(32768*((v)>0?(v)-(d):(v)+(d))/(32768-(d))))
4544
extern int xpadneo_mouse_raw_event(struct xpadneo_devdata *xdata, struct hid_report *report,
46-
u8 *data, int reportsize)
45+
u8 *data, int reportsize)
4746
{
4847
if (!xdata->mouse_mode)
4948
return 0;
50-
//todo!
49+
return 0; //todo!
5150
}
5251

53-
52+
#define rescale_axis(v,d) (((v)<(d)&&(v)>-(d))?0:(32768*((v)>0?(v)-(d):(v)+(d))/(32768-(d))))
5453
extern int xpadneo_mouse_event(struct xpadneo_devdata *xdata, struct hid_usage *usage, __s32 value)
5554
{
5655
if (!xdata->mouse_mode)

0 commit comments

Comments
 (0)