Fixed config for the keyboard

This commit is contained in:
Maschell 2017-04-01 17:35:50 +02:00
parent 5d2d29b4b9
commit b7d529cce5

View File

@ -128,11 +128,11 @@ void ConfigParser::parseSingleLine(std::string line){
u16 hid_slot = getSlot(); u16 hid_slot = getSlot();
if(HID_DEBUG) log_printf("leftpart = \"%s\" \n",cur_values[0].c_str()); if(HID_DEBUG) log_printf("leftpart = \"%s\" \n",cur_values[0].c_str());
if(HID_DEBUG) log_printf("rightpart = _%s_ \n",cur_values[1].c_str()); if(HID_DEBUG) log_printf("rightpart = \"%s\" \n",cur_values[1].c_str());
int keyslot = -1; int keyslot = -1;
if(HID_DEBUG) log_printf("Checking single value\n"); if(HID_DEBUG) log_printf("Checking single value\n");
if(getType() == PARSE_GAMEPAD /*|| getType() == PARSE_KEYBOARD*/){ if(getType() == PARSE_GAMEPAD || getType() == PARSE_KEYBOARD){
keyslot = ConfigValues::getKeySlotGamePad(cur_values[0]); keyslot = ConfigValues::getKeySlotGamePad(cur_values[0]);
}else if(getType() == PARSE_MOUSE){ }else if(getType() == PARSE_MOUSE){
keyslot = ConfigValues::getKeySlotMouse(cur_values[0]); keyslot = ConfigValues::getKeySlotMouse(cur_values[0]);