mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-10 00:01:28 +01:00
Fix for supporting controller hat input
This commit is contained in:
parent
bc87b5c0ba
commit
7430b41938
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user