switched to uint8 and 16

master
Nick Choi 2017-05-29 21:25:50 -04:00
parent 66e9cf9718
commit 5393bc6f4e
3 changed files with 10 additions and 11 deletions

View File

@ -4,7 +4,7 @@
#include "../../config.h"
#define TAPPING_TERM 200
#define LEADER_TIMEOUT 400
#define LEADER_TIMEOUT 800
#define DISABLE_SPACE_CADET_ROLLOVER

View File

@ -65,14 +65,7 @@ enum my_macros {
RIGHTDESK,
CLOSEDESK
};
enum quick {
DISFACE = 0,
TFLIP,
TPUT,
SHRUG,
FACE,
RANDIG
};
// Tap Dance Definitions
qk_tap_dance_action_t tap_dance_actions[] = {
@ -174,6 +167,11 @@ void matrix_scan_user(void) {
tap(KC_C);
unregister_code(KC_LCTL);
}
SEQ_THREE_KEYS(KC_L,KC_I,KC_T) { // 🔥
unicode_input_start();
register_hex32(pgm_read_dword(&unicode_map[LIT]));
unicode_input_finish();
}
}
}
@ -240,3 +238,4 @@ void cycleMemes(qk_tap_dance_state_t *state, void *user_data) {
}
};

View File

@ -132,9 +132,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
void matrix_scan_tap_dance () {
if (highest_td == -1)
return;
int tap_user_defined;
uint16_t tap_user_defined;
for (int i = 0; i <= highest_td; i++) {
for (uint8_t i = 0; i <= highest_td; i++) {
qk_tap_dance_action_t *action = &tap_dance_actions[i];
if(action->custom_tapping_term > 0 ) {
tap_user_defined = action->custom_tapping_term;