示例#1
0
bool CInput::getPressedCommand(int command)
{
	bool retval = false;
	for(int player=0; player<NUM_INPUTS ; player++ )
		retval |= getPressedCommand(player, command);
	return retval;
}
示例#2
0
bool CInput::getPressedAnyCommand(int player)
{
	for(int i=0 ; i<MAX_COMMANDS ; i++)
		if(getPressedCommand(player,i))
			return true;

	return false;
}
示例#3
0
bool CInput::getPressedAnyButtonCommand(const int player)
{
	for(int i=IC_JUMP ; i<MAX_COMMANDS ; i++)
		if(getPressedCommand(player,i))
			return true;

	return false;
}