The other required set of changes
As per the PR, the changes still holding it up. Add onekey for testing. Fix ARM builds. Fix device descriptor when either axes or buttons is zero. Add compile-time check for at least one axis or button. Move definition to try to fix conflict. PR review comments. qmk cformat
This commit is contained in:
		
							parent
							
								
									d88bdc6a1b
								
							
						
					
					
						commit
						801be60473
					
				
					 18 changed files with 455 additions and 458 deletions
				
			
		|  | @ -72,7 +72,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | |||
| #    include "process_midi.h" | ||||
| #endif | ||||
| #ifdef JOYSTICK_ENABLE | ||||
| #   include "process_joystick.h" | ||||
| #    include "process_joystick.h" | ||||
| #endif | ||||
| #ifdef HD44780_ENABLE | ||||
| #    include "hd44780.h" | ||||
|  |  | |||
|  | @ -185,6 +185,16 @@ typedef struct { | |||
|     int8_t  h; | ||||
| } __attribute__((packed)) report_mouse_t; | ||||
| 
 | ||||
| typedef struct { | ||||
| #if JOYSTICK_AXES_COUNT > 0 | ||||
|     int8_t axes[JOYSTICK_AXES_COUNT]; | ||||
| #endif | ||||
| 
 | ||||
| #if JOYSTICK_BUTTON_COUNT > 0 | ||||
|     uint8_t buttons[(JOYSTICK_BUTTON_COUNT - 1) / 8 + 1]; | ||||
| #endif | ||||
| } __attribute__((packed)) joystick_report_t; | ||||
| 
 | ||||
| /* keycode to system usage */ | ||||
| static inline uint16_t KEYCODE2SYSTEM(uint8_t key) { | ||||
|     switch (key) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Brassel
						Nick Brassel