X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fhost.c;h=6ed3d780f640affa88668ab11a303b40090200db;hb=f609712da3b94ea36612a6f210bd6ce902b74631;hp=28c8a819fd6a8a5280b7281b5ed26329dee0bdb5;hpb=8a709c2750eab09ec0f83450410a13640931d48e;p=max%2Ftmk_keyboard.git diff --git a/common/host.c b/common/host.c index 28c8a819..6ed3d780 100644 --- a/common/host.c +++ b/common/host.c @@ -127,6 +127,11 @@ void host_clear_keys(void) } } +uint8_t host_get_mods(void) +{ + return keyboard_report->mods; +} + void host_add_mods(uint8_t mods) { keyboard_report->mods |= mods;