]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/generic/gamecontroller.cpp
Enumerate available game controllers
[libs/gui.git] / source / input / generic / gamecontroller.cpp
index b320342c732cc1adc5b071781bdcebf659eb5ca0..9ab6738ab24ebc7b4a68de226bada7029a91a5a8 100644 (file)
@@ -8,16 +8,30 @@ namespace Input {
 
 GameController::GameController(unsigned)
 {
-       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