当前位置: 首页>>代码示例>>Java>>正文


Java NiftyMousePrimaryClickedEvent类代码示例

本文整理汇总了Java中de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent的典型用法代码示例。如果您正苦于以下问题:Java NiftyMousePrimaryClickedEvent类的具体用法?Java NiftyMousePrimaryClickedEvent怎么用?Java NiftyMousePrimaryClickedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NiftyMousePrimaryClickedEvent类属于de.lessvoid.nifty.elements.events包,在下文中一共展示了NiftyMousePrimaryClickedEvent类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onMouseDown

import de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent; //导入依赖的package包/类
@NiftyEventSubscriber(pattern=".*AnalogPad")
public void onMouseDown(String id, NiftyMousePrimaryClickedEvent e) {
    if (e.getElement() != pad) {
        return;
    }
    anchored = true;
    anchorX = e.getMouseX();
    anchorY = e.getMouseY();
    x = anchorX;
    y = anchorY;
}
 
开发者ID:dwhuang,项目名称:SMILE,代码行数:12,代码来源:AnalogPadController.java

示例2: onNavAltClicked

import de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent; //导入依赖的package包/类
@NiftyEventSubscriber(pattern="(btAscend|btDescend)")
public void onNavAltClicked(String id, NiftyMousePrimaryClickedEvent e) {
    if (id.equals("btAscend")) {
        altitudeChange = 1;
    } else {
        altitudeChange = -1;
    }
}
 
开发者ID:dwhuang,项目名称:SMILE,代码行数:9,代码来源:CamNavWindowController.java

示例3: onBtPlaneRotClicked

import de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent; //导入依赖的package包/类
@NiftyEventSubscriber(pattern="btPlaneRot(L|R)")
public void onBtPlaneRotClicked(String id, NiftyMousePrimaryClickedEvent e) {
    if (e.getElement() == btPlaneRotL.getElement()) {
        planeRotDir = 1;
    } else if (e.getElement() == btPlaneRotR.getElement()) {
        planeRotDir = -1;
    }
}
 
开发者ID:dwhuang,项目名称:SMILE,代码行数:9,代码来源:DemoWindowController.java

示例4: onBtRobotJointClicked

import de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent; //导入依赖的package包/类
@NiftyEventSubscriber(pattern="btRobotJoint.?")
public void onBtRobotJointClicked(String id, NiftyMousePrimaryClickedEvent e) {
	if (id.equals("btRobotJointL")) {
		jointVelocity = 1;
		ddRobotJointInd = ddRobotJoint.getSelectedIndex();
	} else if (id.equals("btRobotJointR")) {
		jointVelocity = -1;
		ddRobotJointInd = ddRobotJoint.getSelectedIndex();
	}
}
 
开发者ID:dwhuang,项目名称:SMILE,代码行数:11,代码来源:RobotWindowController.java

示例5: onClick8

import de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent; //导入依赖的package包/类
/**Sets the current item id for use when processing drops **/
@NiftyEventSubscriber(pattern="ItemVal.*")
public void onClick8(String id, NiftyMousePrimaryClickedEvent event) {
	currentElementId = id;
}
 
开发者ID:GSam,项目名称:Game-Project,代码行数:6,代码来源:HudScreenController.java


注:本文中的de.lessvoid.nifty.elements.events.NiftyMousePrimaryClickedEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。