mirror of https://github.com/stella-emu/stella.git
fix display of unmapped events in HelpDialog
This commit is contained in:
parent
0b15163c8a
commit
d60837e3d8
|
@ -330,10 +330,10 @@ enum StellaKey
|
|||
KBDK_RALT = 230, /**< alt gr, option */
|
||||
KBDK_RGUI = 231, /**< windows, command (apple), meta */
|
||||
|
||||
KBDK_MODE = 257, /**< I'm not sure if this is really not covered
|
||||
* by any of the above, but since there's a
|
||||
* special KMOD_MODE for it I'm adding it here
|
||||
*/
|
||||
KBDK_MODE = 257, /**< ALT-GR(aph) key on non-American keyboards
|
||||
* This is like pressing KBDK_RALT + KBDK_RCTRL
|
||||
* on some keyboards
|
||||
*/
|
||||
|
||||
/* @} *//* Usage page 0x07 */
|
||||
|
||||
|
|
|
@ -93,7 +93,8 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
|
|||
};
|
||||
auto ADD_EVENT = [&](const Event::Type e, const string & d)
|
||||
{
|
||||
ADD_BIND(instance().eventHandler().getMappingDesc(e, kEmulationMode), d);
|
||||
string desc = instance().eventHandler().getMappingDesc(e, kEmulationMode);
|
||||
ADD_BIND(desc.length() ? desc : "None", d);
|
||||
};
|
||||
auto ADD_TEXT = [&](const string& d) { ADD_BIND("", d); };
|
||||
auto ADD_LINE = [&]() { ADD_BIND("", ""); };
|
||||
|
|
Loading…
Reference in New Issue