diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-08-31 11:28:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-31 11:28:52 -0400 |
| commit | e28d151a8a1d458f3c18897c6095decc17b0c3a1 (patch) | |
| tree | bfe81eef5f6d5c1e856f408ba255afb0cd75c075 | |
| parent | 27f9671a3ee331b82fff6324a8f73681521ec07a (diff) | |
| parent | c9ea236fc35d350c0ff33de0af84d3dee7d0eb95 (diff) | |
| download | qmk_firmware-e28d151a8a1d458f3c18897c6095decc17b0c3a1.tar.gz qmk_firmware-e28d151a8a1d458f3c18897c6095decc17b0c3a1.zip | |
Merge pull request #707 from algernon/f/unicode/get-mode
process_unicode: Add get_unicode_input_mode()
| -rw-r--r-- | quantum/process_keycode/process_unicode.c | 4 | ||||
| -rw-r--r-- | quantum/process_keycode/process_unicode.h | 1 |
2 files changed, 5 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) { |
diff --git a/quantum/process_keycode/process_unicode.h b/quantum/process_keycode/process_unicode.h index 02ce3dd7e..27f8072ee 100644 --- a/quantum/process_keycode/process_unicode.h +++ b/quantum/process_keycode/process_unicode.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #endif | 13 | #endif |
| 14 | 14 | ||
| 15 | void set_unicode_input_mode(uint8_t os_target); | 15 | void set_unicode_input_mode(uint8_t os_target); |
| 16 | uint8_t get_unicode_input_mode(void); | ||
| 16 | void unicode_input_start(void); | 17 | void unicode_input_start(void); |
| 17 | void unicode_input_finish(void); | 18 | void unicode_input_finish(void); |
| 18 | void register_hex(uint16_t hex); | 19 | void register_hex(uint16_t hex); |
