mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Fix typo: SQL_JOYBATTERYUPDATED => SDL_JOYBATTERYUPDATED
This commit is contained in:
parent
4e77bcb55a
commit
4399edaa9f
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ namespace Ryujinx.SDL2.Common
|
||||||
private uint _refereceCount;
|
private uint _refereceCount;
|
||||||
private Thread _worker;
|
private Thread _worker;
|
||||||
|
|
||||||
private const uint SQL_JOYBATTERYUPDATED = 1543;
|
private const uint SDL_JOYBATTERYUPDATED = 1543;
|
||||||
public event Action<int, int> OnJoyStickConnected;
|
public event Action<int, int> OnJoyStickConnected;
|
||||||
public event Action<int> OnJoystickDisconnected;
|
public event Action<int> OnJoystickDisconnected;
|
||||||
public event Action<int, SDL_JoystickPowerLevel> OnJoyBatteryUpdated;
|
public event Action<int, SDL_JoystickPowerLevel> OnJoyBatteryUpdated;
|
||||||
|
|
@ -148,7 +148,7 @@ namespace Ryujinx.SDL2.Common
|
||||||
|
|
||||||
OnJoystickDisconnected?.Invoke(evnt.cbutton.which);
|
OnJoystickDisconnected?.Invoke(evnt.cbutton.which);
|
||||||
}
|
}
|
||||||
else if ((uint)evnt.type == SQL_JOYBATTERYUPDATED)
|
else if ((uint)evnt.type == SDL_JOYBATTERYUPDATED)
|
||||||
{
|
{
|
||||||
OnJoyBatteryUpdated?.Invoke(evnt.cbutton.which, (SDL_JoystickPowerLevel)evnt.user.code);
|
OnJoyBatteryUpdated?.Invoke(evnt.cbutton.which, (SDL_JoystickPowerLevel)evnt.user.code);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue