예제 #1
0
 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);
 }
예제 #2
0
 public bool WasMouseButtonPressed(Layer.Input.MouseButton button)
 {
     return(_nativeMouse.WasButtonDown((OpenTK.Windowing.GraphicsLibraryFramework.MouseButton)button));
 }