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