本文整理了Java中org.lwjgl.input.Mouse.isGrabbed()
方法的一些代码示例,展示了Mouse.isGrabbed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mouse.isGrabbed()
方法的具体详情如下:
包路径:org.lwjgl.input.Mouse
类名称:Mouse
方法名:isGrabbed
暂无
代码示例来源:origin: libgdx/libgdx
@Override
public boolean isCursorCatched () {
return Mouse.isGrabbed();
}
代码示例来源:origin: libgdx/libgdx
@Override
public boolean isCursorCatched () {
return Mouse.isGrabbed();
}
代码示例来源:origin: MovingBlocks/Terasology
@Override
public boolean isVisible() {
return !Mouse.isGrabbed();
}
代码示例来源: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: com.ardor3d/ardor3d-lwjgl
public GrabbedState getGrabbed() {
return Mouse.isGrabbed() ? GrabbedState.GRABBED : GrabbedState.NOT_GRABBED;
}
}
代码示例来源:origin: org.slick2d/slick2d-core
/**
* @see org.newdawn.slick.GameContainer#isMouseGrabbed()
*/
public boolean isMouseGrabbed() {
return Mouse.isGrabbed();
}
代码示例来源:origin: org.slick2d/slick2d-core
/**
* @see org.newdawn.slick.GameContainer#isMouseGrabbed()
*/
public boolean isMouseGrabbed() {
return Mouse.isGrabbed();
}
代码示例来源:origin: playn/playn
@Override public boolean isMouseLocked() { return Mouse.isGrabbed(); }
@Override public void setMouseLocked (boolean locked) { Mouse.setGrabbed(locked); }
代码示例来源:origin: threerings/playn
@Override
public boolean isLocked() {
return Mouse.isGrabbed();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl
@Override
public boolean isCursorCatched () {
return Mouse.isGrabbed();
}
代码示例来源:origin: com.googlecode.playn/playn-java
@Override
public boolean isLocked() {
return Mouse.isGrabbed();
}
代码示例来源: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();
}
代码示例来源:origin: org.slick2d/slick2d-core
if (Mouse.isGrabbed() && displayActive) {
if ((Mouse.getEventDX() != 0) || (Mouse.getEventDY() != 0)) {
consumed = false;
if (!displayActive || Mouse.isGrabbed()) {
lastMouseX = getMouseX();
lastMouseY = getMouseY();
内容来源于网络,如有侵权,请联系作者删除!