fix indentation, now using tabs

This commit is contained in:
arthur.jamet
2021-05-21 23:50:54 +02:00
parent 17f0db2bd1
commit dd128b8b97
71 changed files with 1457 additions and 1473 deletions

View File

@@ -10,40 +10,40 @@
bool RAY::Controller::Keyboard::isPressed(RAY::Controller::Keyboard::Key key)
{
return IsKeyPressed(key);
return IsKeyPressed(key);
}
bool RAY::Controller::Keyboard::isDown(RAY::Controller::Keyboard::Key key)
{
return IsKeyDown(key);
return IsKeyDown(key);
}
bool RAY::Controller::Keyboard::isReleased(RAY::Controller::Keyboard::Key key)
{
return IsKeyReleased(key);
return IsKeyReleased(key);
}
bool RAY::Controller::Keyboard::isUp(RAY::Controller::Keyboard::Key key)
{
return IsKeyUp(key);
return IsKeyUp(key);
}
std::vector<RAY::Controller::Keyboard::Key> RAY::Controller::Keyboard::getPressedKeys(void)
{
std::vector<RAY::Controller::Keyboard::Key> pressedKeys;
std::vector<RAY::Controller::Keyboard::Key> pressedKeys;
do {
pressedKeys.push_back((RAY::Controller::Keyboard::Key)GetKeyPressed());
} while (pressedKeys.back() != KEY_NULL);
return pressedKeys;
do {
pressedKeys.push_back((RAY::Controller::Keyboard::Key)GetKeyPressed());
} while (pressedKeys.back() != KEY_NULL);
return pressedKeys;
}
std::vector<char> RAY::Controller::Keyboard::getPressedChars(void)
{
std::vector<char> pressedChars;
std::vector<char> pressedChars;
do {
pressedChars.push_back(GetCharPressed());
} while (pressedChars.back() != '\0');
return pressedChars;
do {
pressedChars.push_back(GetCharPressed());
} while (pressedChars.back() != '\0');
return pressedChars;
}