public InputState State(Layer.Input.MouseButton button) { if (_nativeMouse.IsButtonDown((OpenTK.Windowing.GraphicsLibraryFramework.MouseButton)button)) { if (_nativeMouse.WasButtonDown((OpenTK.Windowing.GraphicsLibraryFramework.MouseButton)button)) { return(InputState.Repeat); } return(InputState.Press); } return(InputState.Release); }
public bool WasMouseButtonPressed(Layer.Input.MouseButton button) { return(_nativeMouse.WasButtonDown((OpenTK.Windowing.GraphicsLibraryFramework.MouseButton)button)); }