Skip to content

Commit

Permalink
Update SetBindSetting.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 8, 2024
1 parent 29aceee commit cf47e03
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Keybinds/SetBindSetting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,19 @@ std::string SetBindNode::nameForKey(int key)
return "Unknown";

#ifndef GEODE_IS_IOS

auto k = CCKeyboardDispatcher::get()->keyToString(as<enumKeyCodes>(key));

if (k == nullptr)
return "Unknown";

#endif

return std::string(k);

#else

return "";

#endif
}

SettingNode* SetBindValue::createNode(float width)
Expand Down

0 comments on commit cf47e03

Please sign in to comment.