本文整理了Java中com.badlogic.gdx.scenes.scene2d.Stage.mouseMoved()
方法的一些代码示例,展示了Stage.mouseMoved()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.mouseMoved()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Stage
类名称:Stage
方法名:mouseMoved
[英]Applies a mouse moved event to the stage and returns true if an actor in the scene Event#handle() the event. This event only occurs on the desktop.
[中]将鼠标移动的事件应用于舞台,如果场景中的演员事件#handle()处理该事件,则返回true。此事件仅在桌面上发生。
代码示例来源:origin: mstojcevich/Radix
@Override
public void mouseMoved(int x, int y) {
mouseX = x; mouseY = y;
stage.mouseMoved(x, y);
}
代码示例来源:origin: mstojcevich/Radix
@Override
public void mouseMoved(int x, int y) {
mouseX = x; mouseY = y;
stage.mouseMoved(x, y);
}
代码示例来源:origin: crashinvaders/gdx-texture-packer-gui
@Override
public void onDragMoved(int screenX, int screenY) {
stage.mouseMoved(screenX, screenY);
}
代码示例来源:origin: mstojcevich/Radix
@Override
public void mouseMoved(int x, int y) {
mouseX = x; mouseY = y;
stage.mouseMoved(x, y);
}
代码示例来源:origin: com.lwgame.gdx/lwgame-core
@Override
public boolean mouseMoved(int screenX, int screenY) {
return stage.mouseMoved(screenX, screenY) || !isTransparent();
}
代码示例来源:origin: com.lwgame.gdx/core
@Override
public boolean mouseMoved(int screenX, int screenY) {
return stage.mouseMoved(screenX, screenY) || !isTransparent();
}
代码示例来源:origin: dingjibang/GDX-RPG
/** Called when the mouse was moved without any buttons being pressed. Will not be called on iOS.
* @return whether the input was processed */
public boolean mouseMoved (int screenX, int screenY){
if($.allMatch(processors(), p -> p.mouseMoved(screenX, screenY)) && onInput()){
stage.mouseMoved(screenX, screenY);
return bubble;
}
return false;
};
内容来源于网络,如有侵权,请联系作者删除!