Skip to content

Commit

Permalink
👷 Change keymap config
Browse files Browse the repository at this point in the history
  • Loading branch information
fairglen committed Apr 22, 2021
1 parent 353bdfa commit ff8bfb2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 2 additions & 4 deletions keyboards/handwired/joycorne/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#ifdef THUMBSTICK_ENABLE
# define THUMBSTICK_FLIP_X
# define THUMBSTICK_PIN_X F4
# define THUMBSTICK_PIN_Y F5
# define THUMBSTICK_DEBUG
# define THUMBSTICK_MODE_MOUSE
# define THUMBSTICK_PIN_X F6
# define THUMBSTICK_PIN_Y F7
#endif
3 changes: 3 additions & 0 deletions keyboards/handwired/joycorne/keymaps/default/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
*/

#pragma once

#define THUMBSTICK_DEBUG
#define THUMBSTICK_MODE_MOUSE
12 changes: 10 additions & 2 deletions keyboards/handwired/joycorne/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
#include QMK_KEYBOARD_H
#include "keycodes.h"
#include "print.h"

#ifdef THUMBSTICK_ENABLE
# include "thumbstick.h"
Expand Down Expand Up @@ -95,6 +96,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
#ifdef THUMBSTICK_ENABLE
xprintf("Hey THUMBSTICK :)");
case TMB_MODE:
if (record->event.pressed) {
thumbstick_mode_cycle(false);
Expand All @@ -112,5 +114,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// }
// }
// }

void matrix_init_user(void) {}
void keyboard_post_init_user(void) {
// Customise these values to desired behaviour
debug_enable=true;
debug_matrix=true;
xprintf("Hi there :)");
debug_keyboard=true;
debug_mouse=true;
}

0 comments on commit ff8bfb2

Please sign in to comment.