mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-09 09:04:17 -04:00
- added mouse layer to userspace - Ploopy Nano now turns on num lock when pointer is moved - When the keyboard detects num lock it turns the mouse layer on - cleaned up unused key overrides and combos - Rules.mk was redone to drastically reduce memory footprint - merged all config files into the main one - made a clever way to have two _user functions in the userspace - revised drag scroll bind for comfort - removed dpi toggle functionality for nano for now. Need to find way to add it back
15 lines
No EOL
451 B
C
15 lines
No EOL
451 B
C
#include "hoststateautomouse.h"
|
|
|
|
|
|
// keyboard side code to simulate auto mouse between ploopy nano and qmk keyboard
|
|
// nano pointer movement activates auto mouse layer, which toggles numlock
|
|
// when num lock is enabled, keyboard turns on mouse layer
|
|
bool led_update_user(led_t led_state) {
|
|
if(host_keyboard_led_state().num_lock) {
|
|
layer_on(_MOUSE);
|
|
} else if (!host_keyboard_led_state().num_lock) {
|
|
layer_off(_MOUSE);
|
|
}
|
|
|
|
return true;
|
|
} |