forked from qmk/qmk_userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diff for scroll lock scrolling on ploopy.
Fix this one day to run from userspace?
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/keyboards/ploopyco/ploopyco.c b/keyboards/ploopyco/ploopyco.c | ||
index b4499c3470..6b788fbc52 100644 | ||
--- a/keyboards/ploopyco/ploopyco.c | ||
+++ b/keyboards/ploopyco/ploopyco.c | ||
@@ -239,9 +239,16 @@ void pointing_device_init_kb(void) { | ||
pointing_device_set_cpi(dpi_array[keyboard_config.dpi_config]); | ||
} | ||
|
||
+bool led_update_kb(led_t led_state) { | ||
+#if defined(PLOOPY_DRAGSCROLL_ON_SCROLLLOCK_ENABLED) | ||
+ is_drag_scroll = led_state.scroll_lock; | ||
+#endif // PLOOPY_DRAGSCROLL_ON_SCROLLLOCK_ENABLED | ||
+ return true; | ||
+} | ||
+ | ||
void eeconfig_init_kb(void) { | ||
keyboard_config.dpi_config = PLOOPY_DPI_DEFAULT; | ||
eeconfig_update_kb(keyboard_config.raw); | ||
eeconfig_init_user(); | ||
} | ||
-#endif | ||
\ No newline at end of file | ||
+#endif |