Exemplo n.º 1
0
 protected virtual void OnKey(GlfwKeys key, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     //glfw2.SetKeyCallback(null);
     if (key == GlfwKeys.Escape && action == GlfwActionState.Released)
     {
         flagRunning = false;
     }
 }
Exemplo n.º 2
0
 protected virtual void OnUnicodeChar(int UnicodeChar, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     glfw2.SetCharCallback(null);
 }
Exemplo n.º 3
0
 protected virtual void OnMouseButton(GlfwMouseButton button, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     glfw2.SetMouseButtonCallback(null);
 }
 protected virtual void OnKey(GlfwKeys key, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     //glfw2.SetKeyCallback(null);
     if (key == GlfwKeys.Escape && action == GlfwActionState.Released)
         flagRunning = false;
 }
 protected virtual void OnUnicodeChar(int UnicodeChar, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     glfw2.SetCharCallback(null);
 }
 protected virtual void OnMouseButton(GlfwMouseButton button, GlfwActionState action)
 {
     // since this is not overriden, disable this.
     glfw2.SetMouseButtonCallback(null);
 }