OpenRA.Platforms.Default.Sdl2Input.MakeButton C# (CSharp) Method

MakeButton() static private method

static private MakeButton ( byte b ) : MouseButton
b byte
return MouseButton
        static MouseButton MakeButton(byte b)
        {
            return b == SDL.SDL_BUTTON_LEFT ? MouseButton.Left
                : b == SDL.SDL_BUTTON_RIGHT ? MouseButton.Right
                : b == SDL.SDL_BUTTON_MIDDLE ? MouseButton.Middle
                : 0;
        }