Change C++ code style: put curly brace on the same line

This commit is contained in:
Oleg Kalachev
2023-12-29 18:56:25 +03:00
parent 645b148564
commit d2296fea76
19 changed files with 65 additions and 130 deletions

View File

@@ -24,8 +24,7 @@ bool joystickInitialized = false, warnShown = false;
void normalizeRC();
void joystickInit()
{
void joystickInit() {
SDL_Init(SDL_INIT_JOYSTICK);
joystick = SDL_JoystickOpen(0);
if (joystick != NULL) {
@@ -37,8 +36,7 @@ void joystickInit()
}
}
void joystickGet()
{
void joystickGet() {
if (!joystickInitialized) {
joystickInit();
return;