replacement numerical constants with proper SDL key names

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-03-19 01:18:33 +00:00
parent a8b1598683
commit a6f6c3d6ab

View File

@ -443,17 +443,15 @@ void SDLDriver::input(Input::InputType type, int id0, int id1, int id2,
// std::cout << id0 << std::endl;
if(id0 == 9)
evt.Key = irr::KEY_TAB;
else if(id0 == 13)
if(id0 == SDLK_RETURN)
evt.Key = irr::KEY_RETURN;
else if(id0 == 273)
else if(id0 == SDLK_UP)
evt.Key = irr::KEY_UP;
else if(id0 == 274)
else if(id0 == SDLK_DOWN)
evt.Key = irr::KEY_DOWN;
else if(id0 == 275)
else if(id0 == SDLK_RIGHT)
evt.Key = irr::KEY_RIGHT;
else if(id0 == 276)
else if(id0 == SDLK_LEFT)
evt.Key = irr::KEY_LEFT;
else
evt.Key = (irr::EKEY_CODE) id0; // FIXME - probably won't work, need better input handling