summaryrefslogtreecommitdiff
path: root/common/host.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-11 12:48:49 +0900
committertmk <nobody@nowhere>2013-02-11 12:48:49 +0900
commit8c80deb775ac151001dc1592a2e94e8677b49964 (patch)
treeaa62c5cbef8419d9cdded26440cfdb42f7d806fd /common/host.c
parent4701b08b71b187cb3d015bec7e05d30e35c344ac (diff)
parent39d093339393e1758eede06f736b1f99a68ac74c (diff)
Merge branch 'keymap2'
Conflicts: common/keyboard.c
Diffstat (limited to 'common/host.c')
-rw-r--r--common/host.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/common/host.c b/common/host.c
index 261ec6472f..6ed3d780f6 100644
--- a/common/host.c
+++ b/common/host.c
@@ -127,14 +127,19 @@ void host_clear_keys(void)
}
}
-void host_add_mod_bit(uint8_t mod)
+uint8_t host_get_mods(void)
{
- keyboard_report->mods |= mod;
+ return keyboard_report->mods;
}
-void host_del_mod_bit(uint8_t mod)
+void host_add_mods(uint8_t mods)
{
- keyboard_report->mods &= ~mod;
+ keyboard_report->mods |= mods;
+}
+
+void host_del_mods(uint8_t mods)
+{
+ keyboard_report->mods &= ~mods;
}
void host_set_mods(uint8_t mods)