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

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

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

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();

相关文章