2018-05-23 01:59:43 +02:00
|
|
|
#include "edvorakjp.h"
|
|
|
|
|
|
|
|
void matrix_init_user(void) {
|
2018-11-26 18:50:45 +01:00
|
|
|
edvorakjp_status_init();
|
2018-05-23 01:59:43 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
__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) &&\
|
2018-11-26 18:50:45 +01:00
|
|
|
process_record_edvorakjp_swap_scln(keycode, record) &&\
|
2018-05-23 01:59:43 +02:00
|
|
|
process_record_edvorakjp_config(keycode, record) &&\
|
|
|
|
process_record_layer(keycode, record) &&\
|
|
|
|
process_record_ime(keycode, record);
|
|
|
|
}
|
2018-11-26 18:50:45 +01:00
|
|
|
|
|
|
|
__attribute__ ((weak))
|
|
|
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
return true;
|
|
|
|
}
|