X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgeneric%2Fgamecontroller.cpp;h=1d97e42c290634c9901b7085e3ebb719fa7c6011;hb=bc1a38d6d2c966a6aee74e483ca7a7d37a56909e;hp=b320342c732cc1adc5b071781bdcebf659eb5ca0;hpb=c3b9df7cf0a4ea3b97cacc1802d245fee133ed7a;p=libs%2Fgui.git diff --git a/source/input/generic/gamecontroller.cpp b/source/input/generic/gamecontroller.cpp index b320342..1d97e42 100644 --- a/source/input/generic/gamecontroller.cpp +++ b/source/input/generic/gamecontroller.cpp @@ -1,23 +1,38 @@ -#include #include "gamecontroller.h" +#include 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