Beispiel #1
0
 public override void destroyMouse(MouseHardware mouse)
 {
     ((NativeMouse)mouse).Dispose();
     if (mouse == createdMouse)
     {
         createdMouse = null;
     }
 }
Beispiel #2
0
 public override MouseHardware createMouse(Mouse mouse)
 {
     if (createdMouse == null)
     {
         createdMouse = new NativeMouse(window, mouse);
     }
     return(createdMouse);
 }
Beispiel #3
0
 public IntPtr create(NativeMouse obj, NativeOSWindow window)
 {
     handle = GCHandle.Alloc(obj);
     return(NativeMouse_new(window._NativePtr, mouseButtonDownCB, mouseButtonUpCB, mouseMoveCB, mouseWheelCB, GCHandle.ToIntPtr(handle)));
 }