Skip to content

Commit

Permalink
mousekey: expose current report to users (qmk#13069)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-8ch authored Jul 3, 2021
1 parent 610cef5 commit 9034b90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions quantum/mousekey.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,3 +486,5 @@ static void mousekey_debug(void) {
print_dec(mousekey_accel);
print(")\n");
}

report_mouse_t mousekey_get_report(void) { return mouse_report; }
11 changes: 6 additions & 5 deletions quantum/mousekey.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ extern uint8_t mk_time_to_max;
extern uint8_t mk_wheel_max_speed;
extern uint8_t mk_wheel_time_to_max;

void mousekey_task(void);
void mousekey_on(uint8_t code);
void mousekey_off(uint8_t code);
void mousekey_clear(void);
void mousekey_send(void);
void mousekey_task(void);
void mousekey_on(uint8_t code);
void mousekey_off(uint8_t code);
void mousekey_clear(void);
void mousekey_send(void);
report_mouse_t mousekey_get_report(void);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 9034b90

Please sign in to comment.