Пример #1
0
 void renderer_KeyUp(object sender, SdlDotNet.KeyboardEventArgs e)
 {
     //Test.WriteOut("KeyFilterFormsKeyCache._KeyUp(" + e.KeyCode.ToString() + ")" );
     Keys[(int)e.Key] = false;
     if (KeyUp != null)
     {
         KeyUp(sender, e);
     }
 }
Пример #2
0
 void renderer_KeyDown(object sender, SdlDotNet.KeyboardEventArgs e)
 {
     Keys[(int)e.Key] = true;
     //Test.WriteOut("KeyFilterFormsKeyCache._KeyDown(" + e.KeyCode.ToString() + ")" );
     if (KeyDown != null)
     {
         //Test.WriteOut("KeyFilterFormsKeyCache Sending keydown(" + e.KeyCode.ToString() + ")" );
         KeyDown(sender, e);
     }
 }