| 
									
										
										
										
											2017-02-08 22:15:43 -05:00
										 |  |  | // Copyright 2017 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2+
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <string>
 | 
					
						
							| 
									
										
										
										
											2018-07-13 12:06:49 -04:00
										 |  |  | #include <vector>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-08 22:15:43 -05:00
										 |  |  | #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
 | 
					
						
							| 
									
										
										
										
											2019-03-26 19:31:03 -05:00
										 |  |  | #include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
 | 
					
						
							| 
									
										
										
										
											2017-04-04 15:37:31 -04:00
										 |  |  | #include "InputCommon/ControllerInterface/Device.h"
 | 
					
						
							| 
									
										
										
										
											2017-02-08 22:15:43 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace ControllerEmu | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | class Triggers : public ControlGroup | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-07-13 12:06:49 -04:00
										 |  |  |   struct StateData | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     StateData() = default; | 
					
						
							|  |  |  |     explicit StateData(std::size_t trigger_count) : data(trigger_count) {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     std::vector<ControlState> data; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-08 22:15:43 -05:00
										 |  |  |   explicit Triggers(const std::string& name); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-13 12:06:49 -04:00
										 |  |  |   StateData GetState(); | 
					
						
							| 
									
										
										
										
											2019-03-26 19:31:03 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |   SettingValue<double> m_deadzone_setting; | 
					
						
							| 
									
										
										
										
											2017-02-08 22:15:43 -05:00
										 |  |  | }; | 
					
						
							|  |  |  | }  // namespace ControllerEmu
 |