org.lwjgl.input.Mouse.destroy()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.lwjgl.input.Mouse.destroy()方法的一些代码示例,展示了Mouse.destroy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mouse.destroy()方法的具体详情如下:
包路径:org.lwjgl.input.Mouse
类名称:Mouse
方法名:destroy

Mouse.destroy介绍

暂无

代码示例

代码示例来源:origin: MovingBlocks/Terasology

@Override
public void shutdown() {
  Mouse.destroy();
  Keyboard.destroy();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

public void destroy() {
  if (!context.isRenderable())
    return;
  Mouse.destroy();
  // Destroy the cursor cache
  for (Cursor cursor : cursorMap.values()) {
    cursor.destroy();
  }
  cursorMap.clear();
  logger.fine("Mouse destroyed.");
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

private void pauseCanvas(){
  if (Mouse.isCreated()){
    if (Mouse.isGrabbed()){
      Mouse.setGrabbed(false);
      mouseWasGrabbed = true;
    }
    mouseWasCreated = true;
    Mouse.destroy();
  }
  if (Keyboard.isCreated()){
    keyboardWasCreated = true;
    Keyboard.destroy();
  }
  renderable.set(false);
  destroyContext();
}

代码示例来源:origin: nifty-gui/nifty-gui

public void shutdown() {
 Mouse.destroy();
 Keyboard.destroy();
}

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl

public void destroy() {
  if (!context.isRenderable())
    return;
  Mouse.destroy();
  logger.fine("Mouse destroyed.");
}

代码示例来源:origin: org.ode4j/demo

private static void destroyMainWindow()
{
  //  glXDestroyContext (display,glx_context);
  //  XDestroyWindow (display,win);
  //  XSync (display,0);
  //  XCloseDisplay(display);
  //  display = 0;
  //  win = 0;
  //  glx_context = 0;
  Keyboard.destroy();
  Mouse.destroy();
  Display.destroy();
}

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl

private void pauseCanvas(){
  if (Mouse.isCreated()){
    if (Mouse.isGrabbed()){
      Mouse.setGrabbed(false);
      mouseWasGrabbed = true;
    }
    mouseWasCreated = true;
    Mouse.destroy();
  }
  if (Keyboard.isCreated()){
    keyboardWasCreated = true;
    Keyboard.destroy();
  }
  renderable.set(false);
  destroyContext();
}

相关文章