Exemple #1
0
 public override void KeyPressed(Keyboard.Key key, Keyboard.Scancode scancode, bool isRepeat)
 {
     if (key == Keyboard.Key.F)
     {
         Window.SetFullscreen(!Window.GetFullscreen());
     }
 }
Exemple #2
0
 public override void KeyReleased(Keyboard.Key key, Keyboard.Scancode scancode)
 {
     if (key == Keyboard.Key.Escape)
     {
         Event.Quit();
     }
 }
Exemple #3
0
 public virtual void KeyReleased(Keyboard.Key key, Keyboard.Scancode scancode)
 {
 }
Exemple #4
0
 public virtual void KeyPressed(Keyboard.Key key, Keyboard.Scancode scancode, bool isRepeat)
 {
 }