X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgeneric%2Fgamecontroller.cpp;h=8f14e02d92d8ded287de3713e30b04d31d590652;hb=75286abb276e0f7e7a1fb8f5a7a7c1c33ca5bcda;hp=9ba7130eb925097a7003711d364358ae3c44bf53;hpb=e217a93d59aecfa80eec8bfa16b3976abdceca81;p=libs%2Fgui.git diff --git a/source/input/generic/gamecontroller.cpp b/source/input/generic/gamecontroller.cpp index 9ba7130..8f14e02 100644 --- a/source/input/generic/gamecontroller.cpp +++ b/source/input/generic/gamecontroller.cpp @@ -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,9 +16,23 @@ 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