Skip to content

Commit

Permalink
Diff for scroll lock scrolling on ploopy.
Browse files Browse the repository at this point in the history
Fix this one day to run from userspace?
  • Loading branch information
plodah committed Dec 13, 2024
1 parent ab5b8c0 commit 63ebd27
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions users/plodah/firmware-diffs/ploopy-scrolllk.diff
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

0 comments on commit 63ebd27

Please sign in to comment.