mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Insert a space between parens and curlies.
This commit is contained in:
parent
76e9a03f5b
commit
8f11555226
1 changed files with 4 additions and 4 deletions
|
@ -147,7 +147,7 @@ void SDLJoystick::ProcessInput(SDL_Event &event){
|
|||
case SDL_JOYDEVICEREMOVED:
|
||||
{
|
||||
int deviceIndex = getDeviceIndex(event.jdevice.which);
|
||||
if (deviceIndex >= 0){
|
||||
if (deviceIndex >= 0) {
|
||||
SDL_JoystickClose(joys[deviceIndex]);
|
||||
joys[deviceIndex] = 0;
|
||||
}
|
||||
|
@ -156,10 +156,10 @@ void SDLJoystick::ProcessInput(SDL_Event &event){
|
|||
}
|
||||
}
|
||||
|
||||
int SDLJoystick::getDeviceIndex(int instanceId){
|
||||
for (int i = 0; i < joys.size(); i++){
|
||||
int SDLJoystick::getDeviceIndex(int instanceId) {
|
||||
for (int i = 0; i < joys.size(); i++) {
|
||||
SDL_Joystick *joy = joys[i];
|
||||
if (SDL_JoystickInstanceID(joy) == instanceId){
|
||||
if (SDL_JoystickInstanceID(joy) == instanceId) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue