コード例 #1
0
ファイル: cl_input.c プロジェクト: eb/ezquake-source
void IN_ClearProtectedKeys (void)
{
	// Pretend the user entered -moveleft etc at the console
	KeyUp_common(&in_up, VOID_KEY);
	KeyUp_common(&in_down, VOID_KEY);
	KeyUp_common(&in_left, VOID_KEY);
	KeyUp_common(&in_right, VOID_KEY);
	KeyUp_common(&in_forward, VOID_KEY);
	KeyUp_common(&in_back, VOID_KEY);
	KeyUp_common(&in_lookup, VOID_KEY);
	KeyUp_common(&in_lookdown, VOID_KEY);
	KeyUp_common(&in_moveleft, VOID_KEY);
	KeyUp_common(&in_moveright, VOID_KEY);
}
コード例 #2
0
ファイル: cl_input.c プロジェクト: AAS/ezquake-source
// returns whether the button is now up, will not be if other key is holding it down
qbool KeyUp(kbutton_t *b)
{
	int k = VOID_KEY;
	char *c = Cmd_Argv(1);
	if (*c) {
		k = atoi(c);
	}

	return KeyUp_common(b, k);
}
コード例 #3
0
ファイル: cl_input.c プロジェクト: AAS/ezquake-source
void IN_FireUp(void)
{
	int key_code = VOID_KEY;

	if (IN_IsLastArgKeyCode()) {
		key_code = Q_atoi(Cmd_Argv(Cmd_Argc() - 1));
	}

	if (KeyUp_common(&in_attack, key_code)) {
		IN_AttackUp_CommonHide();
	}
}