summaryrefslogtreecommitdiff
path: root/common/host.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-01-13 10:24:20 +0900
committertmk <nobody@nowhere>2013-01-13 10:24:20 +0900
commit32633a42c74c65462370ef4a39a44a5784a98a06 (patch)
tree8bbc2fc62bcb06c9ea897507a4000b7336d1a6eb /common/host.c
parent411de9cc22e927313a5a768f3bf41f2f99bca126 (diff)
Fix tap key using delaying_layer and waiting_key.
Diffstat (limited to 'common/host.c')
-rw-r--r--common/host.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/host.c b/common/host.c
index 28c8a819fd..6ed3d780f6 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;