diff options
author | Gergely Nagy <algernon@madhouse-project.org> | 2016-08-31 08:21:52 +0200 |
---|---|---|
committer | Gergely Nagy <algernon@madhouse-project.org> | 2016-08-31 08:21:52 +0200 |
commit | c9ea236fc35d350c0ff33de0af84d3dee7d0eb95 (patch) | |
tree | bfe81eef5f6d5c1e856f408ba255afb0cd75c075 /quantum/process_keycode/process_unicode.c | |
parent | 27f9671a3ee331b82fff6324a8f73681521ec07a (diff) | |
download | qmk_firmware-c9ea236fc35d350c0ff33de0af84d3dee7d0eb95.tar.gz qmk_firmware-c9ea236fc35d350c0ff33de0af84d3dee7d0eb95.zip |
process_unicode: Add get_unicode_input_mode()
There may be cases where one would like to know the current Unicode
input mode, without having to keep track of it themselves. Add a
function that does just this.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Diffstat (limited to 'quantum/process_keycode/process_unicode.c')
-rw-r--r-- | quantum/process_keycode/process_unicode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_unicode.c b/quantum/process_keycode/process_unicode.c index 06c1694f2..a5d7dca21 100644 --- a/quantum/process_keycode/process_unicode.c +++ b/quantum/process_keycode/process_unicode.c | |||
@@ -18,6 +18,10 @@ void set_unicode_input_mode(uint8_t os_target) | |||
18 | input_mode = os_target; | 18 | input_mode = os_target; |
19 | } | 19 | } |
20 | 20 | ||
21 | uint8_t get_unicode_input_mode(void) { | ||
22 | return input_mode; | ||
23 | } | ||
24 | |||
21 | __attribute__((weak)) | 25 | __attribute__((weak)) |
22 | void unicode_input_start (void) { | 26 | void unicode_input_start (void) { |
23 | switch(input_mode) { | 27 | switch(input_mode) { |