Key handle


SUBMITTED BY: Thor2607

DATE: Sept. 25, 2016, 6:27 p.m.

FORMAT: Text only

SIZE: 475 Bytes

HITS: 671

  1. 59: public override void keyhandle(KeyboardState ks)
  2. 60: {
  3. 61: if (keydown(Keys.Escape,ks)) close.visible = !close.visible;
  4. 62: if (close.visible)
  5. 63: {
  6. 64: close.keyhandle(ks);
  7. 65: base.keyhandle(ks);
  8. 66: return;
  9. 67: }
  10. 68: gui.keyhandle(ks);
  11. 69: base.keyhandle(ks);
  12. 70: }

comments powered by Disqus