Пример #1
0
 private void OnGlfwMouseButton(Window *window, MouseButton button, InputAction action, KeyModifiers mods)
 {
     try
     {
         EmitKeyEvent(Mouse.MouseButtonToKey(Mouse.ConvertGlfwButton(button)), action, mods);
     }
     catch (Exception e)
     {
         CatchCallbackException(e);
     }
 }
Пример #2
0
 public static Button ConvertGlfwButton(GlfwButton button)
 {
     return(_openTKButtonMap[button]);
 }