コード例 #1
0
bool InputManager::isKeyPressed(unsigned int keyID) {
    // Check if it is pressed this frame, and wasn't pressed last frame
    if (isKeyDown(keyID) == true && wasKeyDown(keyID) == false) {
        return true;
    }
    return false;
}
コード例 #2
0
bool InputManager::isKeyPressed(unsigned int keyID)
{
	if (isKeyDown(keyID) && !wasKeyDown(keyID)){
		return true;
	}
	return false;
}
コード例 #3
0
bool InputManager::isKeyPressed(unsigned int keyID) {
		//Check if it was pressed current frame and not last frame
	if ((isKeyDown(keyID)) && (wasKeyDown(keyID) == false)) {
		return true;
	}
	return false;
}	
コード例 #4
0
ファイル: InputManager.cpp プロジェクト: snikk/Junk
/// Returns true if the key was just pressed
bool InputManager::isKeyPressed(unsigned int keyID) {
    return isKeyDown(keyID) == true && wasKeyDown(keyID) == false;
}
コード例 #5
0
bool CoreEngine::InputManager::isKeyPressed(unsigned int keyID) {
	//check if the key is pressed this frames but it wasn't pressed in the previous one 
	return isKeyDown(keyID) && !wasKeyDown(keyID);
}
コード例 #6
0
	bool Keyboard::isKeyHeldDown(byte key)const
	{
		return isKeyDown(key) && wasKeyDown(key);
	}
コード例 #7
0
	bool Keyboard::wasKeyReleasedThisFrame(byte key)const
	{
		return isKeyUp(key) && wasKeyDown(key);

	}
コード例 #8
0
ファイル: Input.cpp プロジェクト: MarkSkyzoid/ciri
	bool Input::wasKeyUp( Key key ) const {
		return !wasKeyDown(key);
	}