mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-29 05:18:43 +02:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
@@ -161,6 +161,10 @@ void set_swap_hands_state(size_t index, uint8_t *swap_state, bool on) {
|
||||
}
|
||||
}
|
||||
|
||||
bool is_swap_hands_on(void) {
|
||||
return swap_hands;
|
||||
}
|
||||
|
||||
/** \brief Process Hand Swap
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
|
||||
@@ -84,6 +84,13 @@ typedef uint32_t swap_state_row_t;
|
||||
# error "MATRIX_COLS: invalid value"
|
||||
# endif
|
||||
|
||||
/**
|
||||
* @brief Get the swap hands enable state
|
||||
*
|
||||
* @return true
|
||||
* @return false
|
||||
*/
|
||||
bool is_swap_hands_on(void);
|
||||
void process_hand_swap(keyevent_t *record);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ action_t action_for_keycode(uint16_t keycode) {
|
||||
case QK_LAYER_MOD ... QK_LAYER_MOD_MAX:
|
||||
mod = mod_config(QK_LAYER_MOD_GET_MODS(keycode));
|
||||
action_layer = QK_LAYER_MOD_GET_LAYER(keycode);
|
||||
action.code = ACTION_LAYER_MODS(action_layer, mod);
|
||||
action.code = ACTION_LAYER_MODS(action_layer, (mod & 0x10) ? mod << 4 : mod);
|
||||
break;
|
||||
#endif
|
||||
#ifndef NO_ACTION_TAPPING
|
||||
|
||||
Reference in New Issue
Block a user