Joystick feature updates (#16732)
* Joystick feature updates * Move new functions to joystick.h * Docs
This commit is contained in:
		
							parent
							
								
									71ffb41c9b
								
							
						
					
					
						commit
						c05e8afe45
					
				
					 10 changed files with 52 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -150,3 +150,5 @@ Note that the supported AVR MCUs have a 10-bit ADC, and 12-bit for most STM32 MC
 | 
			
		|||
 | 
			
		||||
Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured.
 | 
			
		||||
To trigger a joystick button, just add the corresponding keycode to your keymap.
 | 
			
		||||
 | 
			
		||||
You can also trigger joystick buttons in code with `register_joystick_button(button)` and `unregister_joystick_button(button)`, where `button` is the 0-based button index (0 = button 1).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue