mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2025-02-19 10:30:26 +00:00
Clean up shift/shiftlock cruft
* firmware/asdf/src/asdf_modifiers.h: C
This commit is contained in:
parent
8e2a12b9d5
commit
ef7a7bf320
@ -64,7 +64,7 @@ static const modifier_index_t modifier_mapping[] = {
|
|||||||
void asdf_modifier_set_shift_state(uint8_t new_state)
|
void asdf_modifier_set_shift_state(uint8_t new_state)
|
||||||
{
|
{
|
||||||
shift_state = new_state;
|
shift_state = new_state;
|
||||||
asdf_virtual_action(VSHIFT_LED, (shift_state ? V_SET_HI : V_SET_LO));
|
asdf_virtual_action(VSHIFT_LED, ((shift_state & SHIFT_LOCKED_ST) ? V_SET_HI : V_SET_LO));
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_modifier_shift_activate
|
// PROCEDURE: asdf_modifier_shift_activate
|
||||||
|
@ -55,9 +55,7 @@ typedef enum {
|
|||||||
// Define the legal CAPS and CAPSLOCK states
|
// Define the legal CAPS and CAPSLOCK states
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CAPS_OFF_ST = 0,
|
CAPS_OFF_ST = 0,
|
||||||
CAPS_ON_ST = 1,
|
CAPS_LOCKED_ST = 1,
|
||||||
CAPS_LOCKED_ST = 2,
|
|
||||||
CAPS_BOTH_ST = 3 // Never explicitly set. CAPS and CAPSLOCK together.
|
|
||||||
} caps_state_t;
|
} caps_state_t;
|
||||||
|
|
||||||
// Define the legal CTRL states
|
// Define the legal CTRL states
|
||||||
|
Loading…
x
Reference in New Issue
Block a user