input: fix custom pad config removal

This commit is contained in:
Megamouse 2021-09-05 02:15:08 +02:00
parent fe0c164de2
commit 76ac8ffbd6
3 changed files with 15 additions and 0 deletions

View file

@ -429,6 +429,14 @@ void cfg::map_entry::set_map(std::map<std::string, std::string>&& map)
m_map = std::move(map);
}
void cfg::map_entry::erase(const std::string& key)
{
if (m_map.contains(key))
{
m_map.erase(key);
}
}
void cfg::map_entry::from_default()
{
set_map({});