Squashed 'tmk_core/' changes from caca2c0..dc0e46e
dc0e46e Rename LUFA to LUFA-git
3bfa7fa Remove LUFA-120730
215b764 Merge commit 'afa0f22a9299686fd88f58ce09c5b521ac917e8f' as 'protocol/lufa/LUFA'
afa0f22 Squashed 'protocol/lufa/LUFA/' content from commit def7fca
c0c42fa Remove submodule of LUFA
30f897d Merge commit '87ced33feb74e79c3281dda36eb6d6d153399b41' as 'protocol/usb_hid/USB_Host_Shield_2.0'
87ced33 Squashed 'protocol/usb_hid/USB_Host_Shield_2.0/' content from commit aab4a69
14f6d49 Remove submodule of USB_Host_Shield_2.0
git-subtree-dir: tmk_core
git-subtree-split: dc0e46eaa4367d4e218f8816e3c117895820f07c
			
			
This commit is contained in:
		
							parent
							
								
									4d116a04e9
								
							
						
					
					
						commit
						f6d56675f9
					
				
					 1575 changed files with 421901 additions and 63190 deletions
				
			
		
							
								
								
									
										65
									
								
								protocol/usb_hid/USB_Host_Shield_2.0/xboxEnums.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								protocol/usb_hid/USB_Host_Shield_2.0/xboxEnums.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,65 @@
 | 
			
		|||
/* Copyright (C) 2012 Kristian Lauszus, TKJ Electronics. All rights reserved.
 | 
			
		||||
 | 
			
		||||
 This software may be distributed and modified under the terms of the GNU
 | 
			
		||||
 General Public License version 2 (GPL2) as published by the Free Software
 | 
			
		||||
 Foundation and appearing in the file GPL2.TXT included in the packaging of
 | 
			
		||||
 this file. Please note that GPL2 Section 2[b] requires that all works based
 | 
			
		||||
 on this software must also be made publicly available under the terms of
 | 
			
		||||
 the GPL2 ("Copyleft").
 | 
			
		||||
 | 
			
		||||
 Contact information
 | 
			
		||||
 -------------------
 | 
			
		||||
 | 
			
		||||
 Kristian Lauszus, TKJ Electronics
 | 
			
		||||
 Web      :  http://www.tkjelectronics.com
 | 
			
		||||
 e-mail   :  kristianl@tkjelectronics.com
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef _xboxenums_h
 | 
			
		||||
#define _xboxenums_h
 | 
			
		||||
 | 
			
		||||
#include "controllerEnums.h"
 | 
			
		||||
 | 
			
		||||
/** Enum used to set special LED modes supported by the Xbox controller. */
 | 
			
		||||
enum LEDModeEnum {
 | 
			
		||||
        ROTATING = 0x0A,
 | 
			
		||||
        FASTBLINK = 0x0B,
 | 
			
		||||
        SLOWBLINK = 0x0C,
 | 
			
		||||
        ALTERNATING = 0x0D,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/** Used to set the LEDs on the controllers */
 | 
			
		||||
const uint8_t XBOX_LEDS[] PROGMEM = {
 | 
			
		||||
        0x00, // OFF
 | 
			
		||||
        0x02, // LED1
 | 
			
		||||
        0x03, // LED2
 | 
			
		||||
        0x04, // LED3
 | 
			
		||||
        0x05, // LED4
 | 
			
		||||
        0x01, // ALL - Used to blink all LEDs
 | 
			
		||||
};
 | 
			
		||||
/** Buttons on the controllers */
 | 
			
		||||
const uint16_t XBOX_BUTTONS[] PROGMEM = {
 | 
			
		||||
        0x0100, // UP
 | 
			
		||||
        0x0800, // RIGHT
 | 
			
		||||
        0x0200, // DOWN
 | 
			
		||||
        0x0400, // LEFT
 | 
			
		||||
 | 
			
		||||
        0x2000, // BACK
 | 
			
		||||
        0x1000, // START
 | 
			
		||||
        0x4000, // L3
 | 
			
		||||
        0x8000, // R3
 | 
			
		||||
 | 
			
		||||
        0, 0, // Skip L2 and R2 as these are analog buttons
 | 
			
		||||
        0x0001, // L1
 | 
			
		||||
        0x0002, // R1
 | 
			
		||||
 | 
			
		||||
        0x0020, // B
 | 
			
		||||
        0x0010, // A
 | 
			
		||||
        0x0040, // X
 | 
			
		||||
        0x0080, // Y
 | 
			
		||||
 | 
			
		||||
        0x0004, // XBOX
 | 
			
		||||
        0x0008, // SYNC
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue