]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/linux/gamecontroller.cpp
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / input / linux / gamecontroller.cpp
index 58e4ef17325d2aa8d3b0a22447ccae4b30ac86da..06008bcf90b0adcd2abd89d6e05eac457b049992 100644 (file)
@@ -1,3 +1,5 @@
+#include "gamecontroller.h"
+#include "gamecontroller_platform.h"
 #include <fcntl.h>
 #include <linux/joystick.h>
 #include <msp/core/algorithm.h>
@@ -5,8 +7,6 @@
 #include <msp/fs/dir.h>
 #include <msp/io/handle_private.h>
 #include <msp/strings/format.h>
-#include "gamecontroller.h"
-#include "gamecontroller_platform.h"
 
 using namespace std;
 
@@ -16,8 +16,7 @@ namespace Input {
 vector<string> GameController::Private::detected_controllers;
 
 GameController::GameController(unsigned index):
-       Device(GAME_CONTROLLER),
-       event_disp(0)
+       Device(GAME_CONTROLLER)
 {
        if(!detect_done)
                detect();