]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/generic/gamecontroller.cpp
Add constants for mouse axes and buttons
[libs/gui.git] / source / input / generic / gamecontroller.cpp
index 419c6781dd732e490fd48ea1f94073d94f214386..8f14e02d92d8ded287de3713e30b04d31d590652 100644 (file)
@@ -6,7 +6,8 @@ using namespace std;
 namespace Msp {
 namespace Input {
 
-GameController::GameController(unsigned)
+GameController::GameController(unsigned):
+       Device(GAME_CONTROLLER)
 {
        throw device_not_available("GameController");
 }
@@ -15,6 +16,12 @@ GameController::~GameController()
 {
 }
 
+unsigned GameController::detect()
+{
+       detect_done = true;
+       return 0;
+}
+
 void GameController::use_event_dispatcher(IO::EventDispatcher *)
 {
 }