forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keymap] Remove LAYOUT_kc macros from edvorakjp keymaps (qmk#12217)
- Loading branch information
Showing
5 changed files
with
191 additions
and
193 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,22 @@ | ||
#include "edvorakjp.h" | ||
|
||
void matrix_init_user(void) { | ||
edvorakjp_status_init(); | ||
matrix_init_keymap(); | ||
edvorakjp_status_init(); | ||
matrix_init_keymap(); | ||
} | ||
|
||
__attribute__ ((weak)) | ||
void matrix_init_keymap() {} | ||
__attribute__((weak)) void matrix_init_keymap() {} | ||
|
||
uint32_t layer_state_set_user(uint32_t state) { | ||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
return layer_state_set_keymap(state); | ||
state = update_tri_layer_state(state, L_EDVORAKJP_LOWER, L_EDVORAKJP_RAISE, L_EDVORAKJP_ADJUST); | ||
return layer_state_set_keymap(state); | ||
} | ||
|
||
__attribute__ ((weak)) | ||
uint32_t layer_state_set_keymap(uint32_t state) { | ||
return state; | ||
} | ||
__attribute__((weak)) uint32_t layer_state_set_keymap(uint32_t state) { return state; } | ||
|
||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
return process_record_keymap(keycode, record) &&\ | ||
process_record_edvorakjp_swap_scln(keycode, record) &&\ | ||
process_record_edvorakjp_config(keycode, record) &&\ | ||
process_record_layer(keycode, record) &&\ | ||
process_record_ime(keycode, record); | ||
bool process_record_user_result = process_record_keymap(keycode, record) && process_record_edvorakjp_swap_scln(keycode, record) && process_record_edvorakjp_config(keycode, record) && process_record_layer(keycode, record) && process_record_ime(keycode, record); | ||
return process_record_user_result; | ||
} | ||
|
||
__attribute__ ((weak)) | ||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | ||
return true; | ||
} | ||
__attribute__((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; } |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.