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>
This commit is contained in:
		
							parent
							
								
									27f9671a3e
								
							
						
					
					
						commit
						c9ea236fc3
					
				@ -18,6 +18,10 @@ void set_unicode_input_mode(uint8_t os_target)
 | 
			
		||||
  input_mode = os_target;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint8_t get_unicode_input_mode(void) {
 | 
			
		||||
  return input_mode;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
__attribute__((weak))
 | 
			
		||||
void unicode_input_start (void) {
 | 
			
		||||
  switch(input_mode) {
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void set_unicode_input_mode(uint8_t os_target);
 | 
			
		||||
uint8_t get_unicode_input_mode(void);
 | 
			
		||||
void unicode_input_start(void);
 | 
			
		||||
void unicode_input_finish(void);
 | 
			
		||||
void register_hex(uint16_t hex);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user