include/GizegoEngine.h
//Checks is a key or mouse button is pressed down. It only returns true once when the is pushed down. If it is already down it will return false.
Checks is a key or mouse button is pressed down. It only returns true once when the is pushed down. If it is already down it will return false.
Checks is a key or mouse button is pressed down . It only returns true once when the is pushed down . If it is already down it will return false .
bool KeyClicked(KeyBind kb)
		{
			if (IsKeyPressed(kb))
			{ 
				this_frame.push_back(kb);
				for (unsigned int i = 0; i < last_frame.size(); i++)
				{
					if (last_frame[i].GetKeyNumber() == kb.GetKeyNumber())
						return false;
				}
				return true;
			}
			return false;
		}
bool KeyClicked ( KeyBind kb ) { if ( IsKeyPressed ( kb ) ) { this_frame . push_back ( kb ) ; for ( unsigned int i = 0 ; i < last_frame . size ( ) ; i ++ ) { if ( last_frame [ i ] . GetKeyNumber ( ) == kb . GetKeyNumber ( ) ) return false ; } return true ; } return false ; }
Checks is a key or mouse button is pressed down.
Checks is a key or mouse button is pressed down .