Created
December 21, 2018 18:32
-
-
Save cellularmitosis/1b5a8833946da77e4fee659637703056 to your computer and use it in GitHub Desktop.
some important QMK types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* key matrix position */ | |
typedef struct { | |
uint8_t col; | |
uint8_t row; | |
} keypos_t; | |
/* key event */ | |
typedef struct { | |
keypos_t key; | |
bool pressed; | |
uint16_t time; | |
} keyevent_t; | |
/* tapping count and state */ | |
typedef struct { | |
bool interrupted :1; | |
bool reserved2 :1; | |
bool reserved1 :1; | |
bool reserved0 :1; | |
uint8_t count :4; | |
} tap_t; | |
/* Key event container for recording */ | |
typedef struct { | |
keyevent_t event; | |
#ifndef NO_ACTION_TAPPING | |
tap_t tap; | |
#endif | |
} keyrecord_t; | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment