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


Java Keys.APOSTROPHE属性代码示例

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


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

示例1: setKeyAssign

public void setKeyAssign(Mode mode, boolean enable) {
	switch (mode) {
	case BEAT_5K:
	case BEAT_7K:
		keys = new int[] { Keys.Z, Keys.S, Keys.X, Keys.D, Keys.C, Keys.F, Keys.V, Keys.SHIFT_LEFT,
				Keys.CONTROL_LEFT };
		break;
	case BEAT_10K:
	case BEAT_14K:
	default:
		keys = new int[] { Keys.Z, Keys.S, Keys.X, Keys.D, Keys.C, Keys.F, Keys.V, Keys.SHIFT_LEFT,
				Keys.CONTROL_LEFT, Keys.COMMA, Keys.L, Keys.PERIOD, Keys.SEMICOLON, Keys.SLASH, Keys.APOSTROPHE,
				Keys.UNKNOWN, Keys.SHIFT_RIGHT, Keys.CONTROL_RIGHT };
		break;
	case POPN_5K:
	case POPN_9K:
		keys = new int[] { Keys.Z, Keys.S, Keys.X, Keys.D, Keys.C, Keys.F, Keys.V, Keys.G, Keys.B };
		break;
	case KEYBOARD_24K:
		keys = new int[] { Keys.Z, Keys.S, Keys.X, Keys.D, Keys.C, Keys.F, Keys.V, Keys.SHIFT_LEFT,
				Keys.CONTROL_LEFT, Keys.COMMA, Keys.L, Keys.PERIOD, Keys.SEMICOLON, Keys.SLASH, Keys.APOSTROPHE,
				Keys.UNKNOWN, Keys.SHIFT_RIGHT, Keys.CONTROL_RIGHT };
		keys = Arrays.copyOf(keys, 26);
		break;
	case KEYBOARD_24K_DOUBLE:
		keys = new int[] { Keys.Z, Keys.S, Keys.X, Keys.D, Keys.C, Keys.F, Keys.V, Keys.SHIFT_LEFT,
				Keys.CONTROL_LEFT, Keys.COMMA, Keys.L, Keys.PERIOD, Keys.SEMICOLON, Keys.SLASH, Keys.APOSTROPHE,
				Keys.UNKNOWN, Keys.SHIFT_RIGHT, Keys.CONTROL_RIGHT };
		keys = Arrays.copyOf(keys, 52);
		break;
	}
	if(!enable) {
		Arrays.fill(keys, -1);
	}
	start = Keys.Q;
	select = Keys.W;			
}
 
开发者ID:exch-bms2,项目名称:beatoraja,代码行数:37,代码来源:PlayConfig.java

示例2: GUIConsole

/** Creates the console.<br>
 * <b>***IMPORTANT***</b> Call {@link Console#dispose()} to make your {@link InputProcessor} the default processor again (this
 * console uses a multiplexer to circumvent it).
 *
 * @param skin Uses skins for Label, TextField, and Table. Skin <b>must</b> contain a font called 'default-font'.
 * @param useMultiplexer If internal multiplexer should be used
 * @see Console#dispose() */
public GUIConsole (Skin skin, boolean useMultiplexer) {
	this(skin, useMultiplexer, Keys.APOSTROPHE);
}
 
开发者ID:StrongJoshua,项目名称:libgdx-inGameConsole,代码行数:10,代码来源:GUIConsole.java


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