ps2_usb: Support for hidden switch in model M

This commit is contained in:
tmk 2016-10-24 04:33:04 +09:00
parent a6f725d2bc
commit ec60203fd7
4 changed files with 101 additions and 67 deletions

View file

@ -35,7 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* key combination for command */
#define IS_COMMAND() ( \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) || \
keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) \
)