Skip to content

Commit

Permalink
todo!
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Mar 6, 2022
1 parent f49b537 commit b7fac5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hid-xpadneo/src/xpadneo.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ extern int xpadneo_init_consumer(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 *);

Expand Down
7 changes: 3 additions & 4 deletions hid-xpadneo/src/xpadneo/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7fac5d

Please sign in to comment.