X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgeneric%2Fgamecontroller.cpp;h=9ab6738ab24ebc7b4a68de226bada7029a91a5a8;hb=7262f1e7e9ea88a021c14de9dc06ebe76112afd7;hp=b320342c732cc1adc5b071781bdcebf659eb5ca0;hpb=c3b9df7cf0a4ea3b97cacc1802d245fee133ed7a;p=libs%2Fgui.git diff --git a/source/input/generic/gamecontroller.cpp b/source/input/generic/gamecontroller.cpp index b320342..9ab6738 100644 --- a/source/input/generic/gamecontroller.cpp +++ b/source/input/generic/gamecontroller.cpp @@ -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