mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-03 18:58:57 +02:00
misc: chore: Use explicit types & fix object creation
This commit is contained in:
@@ -281,7 +281,7 @@ namespace Ryujinx.Input.HLE
|
||||
public void Update()
|
||||
{
|
||||
// _gamepad may be altered by other threads
|
||||
var gamepad = _gamepad;
|
||||
IGamepad gamepad = _gamepad;
|
||||
|
||||
if (gamepad != null && GamepadDriver != null)
|
||||
{
|
||||
@@ -508,7 +508,7 @@ namespace Ryujinx.Input.HLE
|
||||
|
||||
public static KeyboardInput GetHLEKeyboardInput(IGamepadDriver KeyboardDriver)
|
||||
{
|
||||
var keyboard = KeyboardDriver.GetGamepad("0") as IKeyboard;
|
||||
IKeyboard keyboard = KeyboardDriver.GetGamepad("0") as IKeyboard;
|
||||
|
||||
KeyboardStateSnapshot keyboardState = keyboard?.GetKeyboardStateSnapshot();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user