diff options
| author | tmk <nobody@nowhere> | 2013-02-11 12:48:49 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-02-11 12:48:49 +0900 |
| commit | 8c80deb775ac151001dc1592a2e94e8677b49964 (patch) | |
| tree | aa62c5cbef8419d9cdded26440cfdb42f7d806fd /common/host.c | |
| parent | 4701b08b71b187cb3d015bec7e05d30e35c344ac (diff) | |
| parent | 39d093339393e1758eede06f736b1f99a68ac74c (diff) | |
| download | qmk_firmware-8c80deb775ac151001dc1592a2e94e8677b49964.tar.gz qmk_firmware-8c80deb775ac151001dc1592a2e94e8677b49964.zip | |
Merge branch 'keymap2'
Conflicts:
common/keyboard.c
Diffstat (limited to 'common/host.c')
| -rw-r--r-- | common/host.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/common/host.c b/common/host.c index 261ec6472..6ed3d780f 100644 --- a/common/host.c +++ b/common/host.c | |||
| @@ -127,14 +127,19 @@ void host_clear_keys(void) | |||
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | void host_add_mod_bit(uint8_t mod) | 130 | uint8_t host_get_mods(void) |
| 131 | { | 131 | { |
| 132 | keyboard_report->mods |= mod; | 132 | return keyboard_report->mods; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | void host_del_mod_bit(uint8_t mod) | 135 | void host_add_mods(uint8_t mods) |
| 136 | { | 136 | { |
| 137 | keyboard_report->mods &= ~mod; | 137 | keyboard_report->mods |= mods; |
| 138 | } | ||
| 139 | |||
| 140 | void host_del_mods(uint8_t mods) | ||
| 141 | { | ||
| 142 | keyboard_report->mods &= ~mods; | ||
| 138 | } | 143 | } |
| 139 | 144 | ||
| 140 | void host_set_mods(uint8_t mods) | 145 | void host_set_mods(uint8_t mods) |
