mirror of https://github.com/snes9xgit/snes9x.git
GTK: Fix broken keys.
This commit is contained in:
parent
bdf0e426e0
commit
83505d88c2
|
@ -706,15 +706,12 @@ void Snes9xConfig::rebind_keys()
|
||||||
for (dupe = button_i + 1; dupe < NUM_JOYPAD_LINKS; dupe++)
|
for (dupe = button_i + 1; dupe < NUM_JOYPAD_LINKS; dupe++)
|
||||||
{
|
{
|
||||||
if (bin[button_i].matches(bin[dupe]) && bin[button_i].hex() != 0)
|
if (bin[button_i].matches(bin[dupe]) && bin[button_i].hex() != 0)
|
||||||
{
|
|
||||||
printf("%d: %d matches %d\n", joypad_i, button_i, dupe);
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (dupe < NUM_JOYPAD_LINKS || bin[button_i].hex() == 0)
|
if (dupe < NUM_JOYPAD_LINKS || bin[button_i].hex() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
string += "Joypad" + std::to_string((joypad_i % 5) + 1) + " ";
|
string = "Joypad" + std::to_string((joypad_i % 5) + 1) + " ";
|
||||||
string += b_links[button_i].snes9x_name;
|
string += b_links[button_i].snes9x_name;
|
||||||
|
|
||||||
bool ismulti = false;
|
bool ismulti = false;
|
||||||
|
|
Loading…
Reference in New Issue