mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	HID: use AnalogDevice
This commit is contained in:
		
							parent
							
								
									1d1329af23
								
							
						
					
					
						commit
						70420272ca
					
				
					 3 changed files with 30 additions and 2 deletions
				
			
		|  | @ -100,4 +100,11 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) { | |||
|  */ | ||||
| using ButtonDevice = InputDevice<bool>; | ||||
| 
 | ||||
| /**
 | ||||
|  * An analog device is an input device that returns a tuple of x and y coordinates as status. The | ||||
|  * coordinates are within the unit circle. x+ is defined as right direction, and y+ is defined as up | ||||
|  * direction | ||||
|  */ | ||||
| using AnalogDevice = InputDevice<std::tuple<float, float>>; | ||||
| 
 | ||||
| } // namespace Input
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue