Пример #1
0
 public bool OldKeyUpEvent(object key)
 {
     if (!OldState.ContainsKey((SDL2.SDL.SDL_Keycode)key))
     {
         return(true);
     }
     return(!OldState[(SDL2.SDL.SDL_Keycode)key]);
 }
Пример #2
0
 public bool OldButtonUpEvent(object key)
 {
     if (!OldState.ContainsKey((uint)key))
     {
         return(true);
     }
     return(!OldState[(uint)key]);
 }
Пример #3
0
 public bool OldKeyDownEvent(object key)
 {
     if (!OldState.ContainsKey((SDL2.SDL.SDL_Keycode)key))
     {
         return(false);
     }
     return(OldState[(SDL2.SDL.SDL_Keycode)key]);
 }
Пример #4
0
 public bool OldButtonDownEvent(object key)
 {
     if (!OldState.ContainsKey((uint)key))
     {
         return(false);
     }
     return(OldState[(uint)key]);
 }