Exemple #1
0
 public override void destroyKeyboard(KeyboardHardware keyboard)
 {
     ((NativeKeyboard)keyboard).Dispose();
     if (keyboard == createdKeyboard)
     {
         createdKeyboard = null;
     }
 }
Exemple #2
0
 public override KeyboardHardware createKeyboard(Keyboard keyboard)
 {
     if (createdKeyboard == null)
     {
         createdKeyboard = new NativeKeyboard(window, keyboard);
     }
     return(createdKeyboard);
 }
 public IntPtr create(NativeKeyboard obj, NativeOSWindow window)
 {
     handle = GCHandle.Alloc(obj);
     return(NativeKeyboard_new(window._NativePtr, keyDownCB, keyUpCB, GCHandle.ToIntPtr(handle)));
 }