mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-22 12:09:16 +01:00
Fixed config for the keyboard
This commit is contained in:
parent
5d2d29b4b9
commit
b7d529cce5
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user