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
No known key found for this signature in database
GPG key ID: 51CCF34CF9DF63EF
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();