forked from eden-emu/eden
		
	core/hid: Add home and screenshot button support
This commit is contained in:
		
							parent
							
								
									2b88e2536c
								
							
						
					
					
						commit
						06d840652f
					
				
					 3 changed files with 46 additions and 1 deletions
				
			
		|  | @ -596,7 +596,10 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback | |||
|             controller.npad_button_state.right_sr.Assign(current_status.value); | ||||
|             break; | ||||
|         case Settings::NativeButton::Home: | ||||
|             controller.home_button_state.home.Assign(current_status.value); | ||||
|             break; | ||||
|         case Settings::NativeButton::Screenshot: | ||||
|             controller.capture_button_state.capture.Assign(current_status.value); | ||||
|             break; | ||||
|         } | ||||
|     } | ||||
|  | @ -1077,6 +1080,20 @@ BatteryValues EmulatedController::GetBatteryValues() const { | |||
|     return controller.battery_values; | ||||
| } | ||||
| 
 | ||||
| HomeButtonState EmulatedController::GetHomeButtons() const { | ||||
|     if (is_configuring) { | ||||
|         return {}; | ||||
|     } | ||||
|     return controller.home_button_state; | ||||
| } | ||||
| 
 | ||||
| CaptureButtonState EmulatedController::GetCaptureButtons() const { | ||||
|     if (is_configuring) { | ||||
|         return {}; | ||||
|     } | ||||
|     return controller.capture_button_state; | ||||
| } | ||||
| 
 | ||||
| NpadButtonState EmulatedController::GetNpadButtons() const { | ||||
|     if (is_configuring) { | ||||
|         return {}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 german77
						german77