mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-15 12:36:28 +02:00
misc: chore: Use collection expressions in Input projects
This commit is contained in:
parent
9f3eac7f26
commit
45125c16cf
6 changed files with 31 additions and 28 deletions
|
@ -23,8 +23,8 @@ namespace Ryujinx.Input.SDL2
|
|||
|
||||
private StandardControllerInputConfig _configuration;
|
||||
|
||||
private static readonly SDL_GameControllerButton[] _buttonsDriverMapping = new SDL_GameControllerButton[(int)GamepadButtonInputId.Count]
|
||||
{
|
||||
private static readonly SDL_GameControllerButton[] _buttonsDriverMapping =
|
||||
[
|
||||
// Unbound, ignored.
|
||||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID,
|
||||
|
||||
|
@ -59,19 +59,19 @@ namespace Ryujinx.Input.SDL2
|
|||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID,
|
||||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID,
|
||||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID,
|
||||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID,
|
||||
};
|
||||
SDL_GameControllerButton.SDL_CONTROLLER_BUTTON_INVALID
|
||||
];
|
||||
|
||||
private readonly Lock _userMappingLock = new();
|
||||
|
||||
private readonly List<ButtonMappingEntry> _buttonsUserMapping;
|
||||
|
||||
private readonly StickInputId[] _stickUserMapping = new StickInputId[(int)StickInputId.Count]
|
||||
{
|
||||
private readonly StickInputId[] _stickUserMapping =
|
||||
[
|
||||
StickInputId.Unbound,
|
||||
StickInputId.Left,
|
||||
StickInputId.Right,
|
||||
};
|
||||
StickInputId.Right
|
||||
];
|
||||
|
||||
public GamepadFeaturesFlag Features { get; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue