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


Java Keys.F11属性代码示例

本文整理汇总了Java中com.badlogic.gdx.Input.Keys.F11属性的典型用法代码示例。如果您正苦于以下问题:Java Keys.F11属性的具体用法?Java Keys.F11怎么用?Java Keys.F11使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.badlogic.gdx.Input.Keys的用法示例。


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

示例1: keyUp

@Override
public boolean keyUp(int keycode) {

	if (keycode == Keys.ESCAPE || (keycode == Keys.SPACE && PAUSED)) {

		PAUSED = !PAUSED;
		Gdx.input.setCursorCatched(!PAUSED);

	} else if (keycode == Keys.F5) {
		cameraMode++;
		cameraMode = cameraMode % 3;
		if (cameraMode == 2) {
			cameraMode = 0;
		}
	} else if (keycode == Keys.F6) {
		cameraMode = 2;
	} else if (keycode == Keys.F11) {
		ExterminateGame.fullscree = !ExterminateGame.fullscree;

		ExterminateGame.updateFullscreen();
	}
	if (keycode == Keys.F3) {
		InGame.showInfo = !InGame.showInfo;
	}
	if (keycode == Keys.F4) {
		drawHitBox = !drawHitBox;
	}

	keys.remove(keycode, 0);
	return true;
}
 
开发者ID:Osaris31,项目名称:exterminate,代码行数:31,代码来源:CameraController.java

示例2: loadDefault

public void loadDefault() {
	//player
	forward = Keys.W;
	right = Keys.D;
	left = Keys.A;
	back = Keys.S;
	shoot = Keys.SPACE;
	changeVehicle = Keys.G;
	land = Keys.T;
	
	//ui
	toggleHUD = Keys.H;
	toggleEdgeMap = Keys.M;
	toggleSpaceMap = Keys.P;
	
	//screen
	fullscreen = Keys.F11;
	vsync = Keys.F8;
	zoomOut = Keys.MINUS;
	zoomIn = Keys.EQUALS;
	resetZoom = Keys.PERIOD;
	zoomCharacter = Keys.SLASH;
	zoomSpace = Keys.COMMA;
	rotateLeft = Keys.LEFT_BRACKET;
	rotateRight = Keys.RIGHT_BRACKET;
	
	//debug menu
	toggleDebug = Keys.F3;
	togglePos = Keys.NUMPAD_0;
	toggleComponents = Keys.NUMPAD_1;
	toggleBounds = Keys.NUMPAD_2;
	toggleFPS = Keys.NUMPAD_3;
	toggleOrbit = Keys.NUMPAD_4;
	toggleVector = Keys.NUMPAD_5;
	toggleMenu = Keys.NUMPAD_9;		
}
 
开发者ID:0XDE57,项目名称:SpaceProject,代码行数:36,代码来源:KeyConfig.java


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