Finishing removing automouse

- Testing out the toggle mouse layer instead, so far it's okay
This commit is contained in:
Victor 2024-06-25 16:50:10 -05:00
parent 57937cb5f3
commit 2f6929eae1
Failed to generate hash of commit
8 changed files with 5 additions and 63 deletions

View file

@ -1,15 +0,0 @@
#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;
}

View file

@ -1,3 +0,0 @@
#pragma once
#include "t4corun.h"

View file

@ -37,8 +37,6 @@ MOUSEKEY_ENABLE ?= yes
COMBO_ENABLE ?= yes
KEY_OVERRIDE_ENABLE ?= yes
# custom features
HOST_STATE_AUTO_MOUSE ?= yes #allows kb to enable mouse layer on Ploopy Nano movement
# ---------------------------------------------------------
# include my code that will be common across all my keyboards
@ -64,12 +62,8 @@ endif
ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += features/oled.c
endifs
endif
ifeq ($(strip $(AUDIO_ENABLE)), yes)
MUSIC_MODE = no
endif
#ifeq ($(strip $(HOST_STATE_AUTO_MOUSE)), yes)
# SRC += features/hoststateautomouse.c
#endif
endif

View file

@ -18,11 +18,9 @@ void setLunaJumped(void) { showedJump = true;}
// Hold Navigation and Number to get Symbol
#if !defined(KEYBOARD_ploopyco)
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _NAVIGATION, _NUMBER, _SYMBOL);
}
#endif
// Customize behavior for existing keycodes or create new ones
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@ -53,7 +51,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
/*
// makes num lock a hold instead of toggle
// prevents accidental ploopy nano going into bootloader
case KC_NUM:
@ -63,7 +61,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
tap_code(KC_NUM);
}
return false;
*/
case KC_SPC:
if (record->event.pressed) {
isJumping = true;