本文整理了Java中org.lwjgl.input.Mouse.destroy()
方法的一些代码示例,展示了Mouse.destroy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mouse.destroy()
方法的具体详情如下:
包路径:org.lwjgl.input.Mouse
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!