empty virtual button

pull/20/head
cosmonaut 2022-07-12 17:57:37 -07:00
parent ab619192a6
commit 646e5e9283
2 changed files with 10 additions and 5 deletions

View File

@ -274,10 +274,5 @@ namespace MoonWorks.Input
{
return EnumToTrigger[(SDL.SDL_GameControllerAxis) triggerCode].Value;
}
private bool CheckPressed(SDL.SDL_GameControllerButton button)
{
return MoonWorks.Conversions.ByteToBool(SDL.SDL_GameControllerGetButton(Handle, button));
}
}
}

View File

@ -0,0 +1,10 @@
namespace MoonWorks.Input
{
public class EmptyButton : VirtualButton
{
internal override bool CheckPressed()
{
return false;
}
}
}