Added logic to load default keyboard mapping.

This commit is contained in:
Matthew Budd 2020-07-24 18:44:18 -04:00
parent 8afeb43759
commit 67e87787e3
1 changed files with 12 additions and 0 deletions

View File

@ -484,6 +484,18 @@ int GamePad_t::getDefaultMap( char *out, const char *guid )
return 0;
}
}
else
{
if ( strcmp( guid, "keyboard" ) == 0 )
{
for (int x=0; x<GAMEPAD_NUM_BUTTONS; x++)
{
bmap[x].ButtType = BUTTC_KEYBOARD;
bmap[x].DeviceNum = 0;
bmap[x].ButtonNum = DefaultGamePad[0][x];
}
}
}
return -1;
}
//********************************************************************************