當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。