From 6ecdf690be93e1e8d672123261a167cd727c2421 Mon Sep 17 00:00:00 2001 From: uncavo-hdmi Date: Sat, 22 Feb 2025 18:51:00 +0100 Subject: [PATCH] removed unnecessary logging, formatting and imports. --- src/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs | 4 +--- src/Ryujinx.Input/HLE/NpadManager.cs | 4 ---- src/Ryujinx/Input/AutoAssignController.cs | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs b/src/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs index bfd81d0b8..61e1aed12 100644 --- a/src/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs +++ b/src/Ryujinx.Input.SDL2/SDL2GamepadDriver.cs @@ -1,4 +1,3 @@ -using Ryujinx.Common.Logging; using Ryujinx.SDL2.Common; using System; using System.Collections.Generic; @@ -96,8 +95,7 @@ namespace Ryujinx.Input.SDL2 } private void HandleJoyStickConnected(int joystickDeviceId, int joystickInstanceId) - { - Logger.Warning?.Print(LogClass.Application, "(SDL2GamepadDriver) Joystick connected: " + joystickDeviceId + " " + joystickInstanceId); + { if (SDL_IsGameController(joystickDeviceId) == SDL_bool.SDL_TRUE) { if (_gamepadsInstanceIdsMapping.ContainsKey(joystickInstanceId)) diff --git a/src/Ryujinx.Input/HLE/NpadManager.cs b/src/Ryujinx.Input/HLE/NpadManager.cs index 044b2c489..0286f023f 100644 --- a/src/Ryujinx.Input/HLE/NpadManager.cs +++ b/src/Ryujinx.Input/HLE/NpadManager.cs @@ -1,10 +1,6 @@ using Ryujinx.Common.Configuration.Hid; using Ryujinx.Common.Configuration.Hid.Controller; -using Ryujinx.Common.Configuration.Hid.Controller.Motion; -using ConfigGamepadInputId = Ryujinx.Common.Configuration.Hid.Controller.GamepadInputId; -using ConfigStickInputId = Ryujinx.Common.Configuration.Hid.Controller.StickInputId; using Ryujinx.Common.Configuration.Hid.Keyboard; -using Ryujinx.Common.Logging; using Ryujinx.HLE.HOS.Services.Hid; using System; using System.Collections.Generic; diff --git a/src/Ryujinx/Input/AutoAssignController.cs b/src/Ryujinx/Input/AutoAssignController.cs index f3d59b01f..a5ed2e725 100644 --- a/src/Ryujinx/Input/AutoAssignController.cs +++ b/src/Ryujinx/Input/AutoAssignController.cs @@ -52,7 +52,6 @@ namespace Ryujinx.Ava.Input List newConfig = ControllerAssignmentManager.GetConfiguredControllers( controllers, oldConfig, out bool hasNewControllersConnected); - if (!hasNewControllersConnected) { // there is no *new* controller, we must switch the order of the controllers in