Java Code Examples for org.lwjgl.input.Mouse#destroy()
The following examples show how to use
org.lwjgl.input.Mouse#destroy() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LwjglCanvas.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 6 votes |
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(); }
Example 2
Source File: LwjglCanvas.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 6 votes |
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(); }
Example 3
Source File: LwjglMouseInput.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override 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."); }
Example 4
Source File: LwjglMouseInput.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
public void destroy() { if (!context.isRenderable()) return; Mouse.destroy(); logger.info("Mouse destroyed."); }
Example 5
Source File: Window.java From 3DGameEngine with Apache License 2.0 | 4 votes |
public static void Dispose() { Display.destroy(); Keyboard.destroy(); Mouse.destroy(); }