Taking out Auto Mouse

- It works okay when you are just clicking around but clicking on the
keyboard doesn't reset the timeout on the mouse.
- in addition, I don't like the flow breaking pauses to wait for the timeout
- making mouse layer a toggle instead of automatic
This commit is contained in:
Victor 2024-06-25 15:19:21 -05:00
parent 169f363763
commit 57937cb5f3
Failed to generate hash of commit
4 changed files with 23 additions and 21 deletions

View file

@ -24,5 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PLOOPY_DPI_OPTIONS { 300, 550, 800, 1200 }
#define PLOOPY_DPI_DEFAULT 2
#define POINTING_DEVICE_AUTO_MOUSE_ENABLE
#define AUTO_MOUSE_DEFAULT_LAYER 1
//#define POINTING_DEVICE_AUTO_MOUSE_ENABLE
//#define AUTO_MOUSE_DEFAULT_LAYER 1

View file

@ -15,12 +15,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "t4corun.h"
//const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( KC_NO ),
[1] = LAYOUT( KC_NO )
[0] = LAYOUT( KC_NO )
//, [1] = LAYOUT( KC_NO )
};
@ -34,10 +32,13 @@ void keyboard_post_init_user(void) {
}
/*
void pointing_device_init_user(void) {
set_auto_mouse_enable(true);
}
*/
/*
layer_state_t layer_state_set_user(layer_state_t state) {
switch(get_highest_layer(state)) {
case 1:
@ -54,7 +55,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
return state;
}
*/
bool led_update_user(led_t led_state) {
@ -64,13 +65,13 @@ bool led_update_user(led_t led_state) {
auto_mouse_reset_trigger(true);
scroll_lock_state = led_state.scroll_lock;
}
/*
// when num lock is pressed, cycle dpi
if ( num_lock_state != led_state.num_lock ) {
cycle_dpi();
num_lock_state = led_state.num_lock;
}
*/
// when all three are enabled, go to bootloader
if ( led_state.num_lock && led_state.caps_lock && led_state.scroll_lock ) {
reset_keyboard();

View file

@ -64,12 +64,12 @@ endif
ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += features/oled.c
endif
endifs
ifeq ($(strip $(AUDIO_ENABLE)), yes)
MUSIC_MODE = no
endif
ifeq ($(strip $(HOST_STATE_AUTO_MOUSE)), yes)
SRC += features/hoststateautomouse.c
endif
#ifeq ($(strip $(HOST_STATE_AUTO_MOUSE)), yes)
# SRC += features/hoststateautomouse.c
#endif

View file

@ -55,10 +55,11 @@ enum keycodes {
#define ___x___ KC_NO
// momentary layer
// layer changes
#define NAV MO(_NAVIGATION)
#define NUM MO(_NUMBER)
#define CONFIG MO(_CONFIG)
#define MOUSE TG(_MOUSE)
#define CONFIG MO(_CONFIG)
// Windows Shortcuts
#define SC_COPY LCTL(KC_C)
@ -221,12 +222,12 @@ enum keycodes {
#define LAYER_NAVIGATION \
KC_ESC, KC_HOME, KC_UP, KC_END, KC_PGUP, ___x___, ___x___, SC_FILE, SC_SNIP, CONFIG, \
KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, ___x___, _SCAG_MODS________________________, \
_UCCPR_L___________________________________, ___x___, KC_APP, TR_SNIP, TR_SDPI, TR_PDPI, \
_UCCPR_L___________________________________, ___x___, KC_APP, ___x___, ___x___, ___x___, \
ZOOMRST, NUM, KC_ENT, _LAYER_TRANS_____________
#define LAYER_NUMBER \
KC_ESC, ___x___, ___x___, ___x___, TR_GRV, ___x___, KC_7, KC_8, KC_9, KC_COMM, \
KC_ESC, ___x___, ___x___, MOUSE, TR_GRV, ___x___, KC_7, KC_8, KC_9, KC_COMM, \
_GACS_MODS________________________, TR_SCLN, KC_0, KC_4, KC_5, KC_6, KC_DOT, \
_UCCPR_L___________________________________, ___x___, KC_1, KC_2, KC_3, KC_MINS, \
_LAYER_TRANS_____________, _BASE_R4_________________
@ -240,10 +241,10 @@ enum keycodes {
#define LAYER_MOUSE \
___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, \
_GACS_MODS________________________, KC_BTN3, ___x___, ___x___, ___x___, ___x___, ___x___, \
___x___, ___x___, ___x___, KC_BTN4, KC_BTN5, ___x___, ___x___, ___x___, ___x___, ___x___, \
___x___, KC_BTN1, KC_BTN2, ___x___, ___x___, ___x___
___x___, KC_BTN5, KC_BTN4, KC_BTN3, TR_PDPI, ___x___, ___x___, ___x___, ___x___, ___x___, \
_GACS_MODS________________________, TR_DRGS, ___x___, ___x___, ___x___, ___x___, ___x___, \
_UCCPR_L___________________________________, ___x___, ___x___, TR_SNIP, TR_SDPI, ___x___, \
___x___, KC_BTN1, KC_BTN2, ___x___, MOUSE, ___x___
#define LAYER_CONFIG \