Explorar o código

device: cleanup

Daniele Bartolini %!s(int64=3) %!d(string=hai) anos
pai
achega
f9ceb27d69
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      src/device/main_linux.cpp

+ 2 - 4
src/device/main_linux.cpp

@@ -441,8 +441,7 @@ struct LinuxDevice
 
 
 			if (FD_ISSET(exit_pipe[0], &fdset)) {
 			if (FD_ISSET(exit_pipe[0], &fdset)) {
 				break;
 				break;
-			}
-			else if (FD_ISSET(x11_fd, &fdset)) {
+			} else if (FD_ISSET(x11_fd, &fdset)) {
 				while (XEventsQueued(_x11_display, QueuedAfterFlush) > 0) {
 				while (XEventsQueued(_x11_display, QueuedAfterFlush) > 0) {
 					XEvent event;
 					XEvent event;
 					XNextEvent(_x11_display, &event);
 					XNextEvent(_x11_display, &event);
@@ -592,8 +591,7 @@ struct LinuxDevice
 						break;
 						break;
 					}
 					}
 				}
 				}
-			}
-			else {
+			} else {
 				_joypad.update(_queue, &fdset);
 				_joypad.update(_queue, &fdset);
 			}
 			}
 		}
 		}