Bug fix for loading gamepad config at startup.
This commit is contained in:
parent
01c60c4dc1
commit
00e316b521
|
@ -2145,7 +2145,7 @@ UpdateInput (Config * config)
|
||||||
for (unsigned int i = 0; i < GAMEPAD_NUM_DEVICES; i++)
|
for (unsigned int i = 0; i < GAMEPAD_NUM_DEVICES; i++)
|
||||||
{
|
{
|
||||||
char buf[64];
|
char buf[64];
|
||||||
snprintf (buf, 32, "SDL.Input.GamePad.%d.", i);
|
snprintf (buf, 32, "SDL.Input.GamePad.%d", i);
|
||||||
prefix = buf;
|
prefix = buf;
|
||||||
|
|
||||||
config->getOption (prefix + "DeviceType", &device);
|
config->getOption (prefix + "DeviceType", &device);
|
||||||
|
|
Loading…
Reference in New Issue