diff options
author | Maxim Devaev <[email protected]> | 2023-09-28 02:19:07 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-28 02:19:07 +0300 |
commit | b606cd60d214cf0687877682c451eeb313255db5 (patch) | |
tree | 0be7eeb3dd67c0e2a681bda65c422c1bf188e7fa /hid/pico/src/ph_ps2.h | |
parent | cfc556f41240283180f993207ce77309bb1b623c (diff) |
pico hid: better ps2x2pico integration (#149) (#151)
Co-authored-by: No0ne <[email protected]>
Diffstat (limited to 'hid/pico/src/ph_ps2.h')
-rw-r--r-- | hid/pico/src/ph_ps2.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hid/pico/src/ph_ps2.h b/hid/pico/src/ph_ps2.h index 6766cbf9..1050b919 100644 --- a/hid/pico/src/ph_ps2.h +++ b/hid/pico/src/ph_ps2.h @@ -33,12 +33,15 @@ extern bool ph_g_ps2_mouse_online; void ph_ps2_init(void); void ph_ps2_task(void); -void ph_ps2_kbd_init(u8 gpio); -void ph_ps2_kbd_task(void); +void tuh_kb_set_leds(u8 leds); +void kb_init(u8 gpio); +bool kb_task(); +void kb_send_key(u8 key, bool state, u8 modifiers); void ph_ps2_kbd_send_key(u8 key, bool state); -void ph_ps2_mouse_init(u8 gpio); -void ph_ps2_mouse_task(void); +void ms_init(u8 gpio); +bool ms_task(); +void ms_send_packet(u8 buttons, s8 x, s8 y, s8 h, s8 v); void ph_ps2_mouse_send_button(u8 button, bool state); void ph_ps2_mouse_send_rel(s8 x, s8 y); void ph_ps2_mouse_send_wheel(s8 h, s8 v); |