mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	remove all occurance of specifying endianness inside BitField
This commit it automatically generated by command in zsh: sed -i -- 's/BitField<\(.*\)_le>/BitField<\1>/g' **/*(D.) BitField is now aware to endianness and default to little endian. It expects a value representation type without storage specification for its template parameter.
This commit is contained in:
		
							parent
							
								
									055b9513a3
								
							
						
					
					
						commit
						104829ae58
					
				
					 7 changed files with 99 additions and 99 deletions
				
			
		| 
						 | 
				
			
			@ -19,9 +19,9 @@ namespace Service::IR {
 | 
			
		|||
 | 
			
		||||
struct ExtraHIDResponse {
 | 
			
		||||
    union {
 | 
			
		||||
        BitField<0, 8, u32_le> header;
 | 
			
		||||
        BitField<8, 12, u32_le> c_stick_x;
 | 
			
		||||
        BitField<20, 12, u32_le> c_stick_y;
 | 
			
		||||
        BitField<0, 8, u32> header;
 | 
			
		||||
        BitField<8, 12, u32> c_stick_x;
 | 
			
		||||
        BitField<20, 12, u32> c_stick_y;
 | 
			
		||||
    } c_stick;
 | 
			
		||||
    union {
 | 
			
		||||
        BitField<0, 5, u8> battery_level;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,13 +27,13 @@ namespace Service::IR {
 | 
			
		|||
union PadState {
 | 
			
		||||
    u32_le hex{};
 | 
			
		||||
 | 
			
		||||
    BitField<14, 1, u32_le> zl;
 | 
			
		||||
    BitField<15, 1, u32_le> zr;
 | 
			
		||||
    BitField<14, 1, u32> zl;
 | 
			
		||||
    BitField<15, 1, u32> zr;
 | 
			
		||||
 | 
			
		||||
    BitField<24, 1, u32_le> c_stick_right;
 | 
			
		||||
    BitField<25, 1, u32_le> c_stick_left;
 | 
			
		||||
    BitField<26, 1, u32_le> c_stick_up;
 | 
			
		||||
    BitField<27, 1, u32_le> c_stick_down;
 | 
			
		||||
    BitField<24, 1, u32> c_stick_right;
 | 
			
		||||
    BitField<25, 1, u32> c_stick_left;
 | 
			
		||||
    BitField<26, 1, u32> c_stick_up;
 | 
			
		||||
    BitField<27, 1, u32> c_stick_down;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/// Interface to "ir:rst" service
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue