- [NEW] input::anyKeyPressed()
This commit is contained in:
@@ -35,6 +35,11 @@ namespace input
|
||||
return keydown != 0;
|
||||
}
|
||||
|
||||
bool anyKeyPressed()
|
||||
{
|
||||
return keypressed != 0;
|
||||
}
|
||||
|
||||
// Torna el codi de la tecla que està sent polsada ara mateix
|
||||
const uint8_t whichKey()
|
||||
{
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace input
|
||||
/// @return true si hi ha alguna tecla polsada, false si no
|
||||
bool anyKey();
|
||||
|
||||
/// @brief El equivalent a anykey per a keypressed
|
||||
/// @return true si hi ha alguna tecla polsada, false si no
|
||||
bool anyKeyPressed();
|
||||
|
||||
/// @brief Torna el codi de la tecla que està sent polsada ara mateix
|
||||
/// @return Quina tecla està sent polsada
|
||||
const uint8_t whichKey();
|
||||
|
||||
Reference in New Issue
Block a user