removed unnecessary logging, formatting and imports.

This commit is contained in:
uncavo-hdmi 2025-02-22 18:51:00 +01:00
parent c6e82046dd
commit 6ecdf690be
3 changed files with 1 additions and 8 deletions

View File

@ -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))

View File

@ -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;

View File

@ -52,7 +52,6 @@ namespace Ryujinx.Ava.Input
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
controllers, oldConfig, out bool hasNewControllersConnected);
if (!hasNewControllersConnected)
{
// there is no *new* controller, we must switch the order of the controllers in