Keymap introspection for Dip Switches (#22543)
This commit is contained in:
		
							parent
							
								
									d85f954d30
								
							
						
					
					
						commit
						4682226e20
					
				
					 11 changed files with 138 additions and 1 deletions
				
			
		|  | @ -35,6 +35,18 @@ uint16_t keycode_at_encodermap_location(uint8_t layer_num, uint8_t encoder_idx, | |||
| 
 | ||||
| #endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
 | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Dip Switch mapping
 | ||||
| 
 | ||||
| #if defined(DIP_SWITCH_ENABLE) && defined(DIP_SWITCH_MAP_ENABLE) | ||||
| 
 | ||||
| // Get the keycode for the dip_switch mapping location, stored in firmware rather than any other persistent storage
 | ||||
| uint16_t keycode_at_dip_switch_map_location_raw(uint8_t switch_idx, bool on); | ||||
| // Get the keycode for the dip_switch mapping location, potentially stored dynamically
 | ||||
| uint16_t keycode_at_dip_switch_map_location(uint8_t switch_idx, bool on); | ||||
| 
 | ||||
| #endif // defined(DIP_SWITCH_ENABLE) && defined(DIP_SWITCH_MAP_ENABLE)
 | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Combos
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joel Challis
						Joel Challis