]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/generic/gamecontroller.cpp
Include the matching header first in .cpp files
[libs/gui.git] / source / input / generic / gamecontroller.cpp
index b320342c732cc1adc5b071781bdcebf659eb5ca0..1d97e42c290634c9901b7085e3ebb719fa7c6011 100644 (file)
@@ -1,23 +1,38 @@
-#include <stdexcept>
 #include "gamecontroller.h"
+#include <stdexcept>
 
 using namespace std;
 
 namespace Msp {
 namespace Input {
 
-GameController::GameController(unsigned)
+GameController::GameController(unsigned):
+       Device(GAME_CONTROLLER)
 {
-       throw runtime_error("not supported");
+       throw device_not_available("GameController");
 }
 
 GameController::~GameController()
 {
 }
 
+unsigned GameController::detect()
+{
+       detect_done = true;
+       return 0;
+}
+
+void GameController::use_event_dispatcher(IO::EventDispatcher *)
+{
+}
+
 void GameController::tick()
 {
 }
 
+void GameController::tick(const Time::TimeDelta &)
+{
+}
+
 } // namespace Input
 } // namespace Msp