Fix for supporting controller hat input

This commit is contained in:
Don Honerbrink 2015-07-29 11:46:59 -05:00
parent bc87b5c0ba
commit 7430b41938

View File

@ -153,7 +153,7 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key)
std::stringstream sshat;
sshat << joydesc.at(0);
int hatnum;
ssjoy >> hatnum;
sshat >> hatnum;
joydesc = joydesc.erase(0, 1);
if(joydesc == "leftup") hat = SDL_HAT_LEFTUP;