mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 12:44:56 +00:00 
			
		
		
		
	Added debug code to show available inputs on iOS/tvOS controllers
This commit is contained in:
		
							parent
							
								
									65473ae36d
								
							
						
					
					
						commit
						4990bd0517
					
				| 
						 | 
				
			
			@ -246,6 +246,19 @@ IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCController *controlle
 | 
			
		|||
 | 
			
		||||
    device->name = SDL_CreateJoystickName(0, 0, NULL, name);
 | 
			
		||||
 | 
			
		||||
#ifdef DEBUG_CONTROLLER_PROFILE
 | 
			
		||||
    if (@available(macOS 10.16, iOS 14.0, tvOS 14.0, *)) {
 | 
			
		||||
        if (controller.physicalInputProfile) {
 | 
			
		||||
            for (id key in controller.physicalInputProfile.buttons) {
 | 
			
		||||
                NSLog(@"Button %@ available\n", key);
 | 
			
		||||
            }
 | 
			
		||||
            for (id key in controller.physicalInputProfile.axes) {
 | 
			
		||||
                NSLog(@"Axis %@ available\n", key);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    if (controller.extendedGamepad) {
 | 
			
		||||
        GCExtendedGamepad *gamepad = controller.extendedGamepad;
 | 
			
		||||
        BOOL is_xbox = IsControllerXbox(controller);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue