From b4cedf059883cef9858fcddf9076fbd8e8c49caf Mon Sep 17 00:00:00 2001 From: Stepland <16676308+Stepland@users.noreply.github.com> Date: Sat, 8 Feb 2020 16:00:31 +0100 Subject: [PATCH] Rename KeyMapping method --- src/Data/KeyMapping.cpp | 2 +- src/Data/KeyMapping.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/KeyMapping.cpp b/src/Data/KeyMapping.cpp index e8b5547..be0b4d7 100644 --- a/src/Data/KeyMapping.cpp +++ b/src/Data/KeyMapping.cpp @@ -53,7 +53,7 @@ KeyMapping::KeyMapping() { } } -void KeyMapping::setPanelToKey(const Button& button, const sf::Keyboard::Key& key) { +void KeyMapping::set_button_to_key(const Button& button, const sf::Keyboard::Key& key) { if (m_key_to_button.find(key) != m_key_to_button.end()) { m_button_to_key.erase(m_key_to_button[key]); m_key_to_button.erase(key); diff --git a/src/Data/KeyMapping.hpp b/src/Data/KeyMapping.hpp index 49d6ba1..73e4d66 100644 --- a/src/Data/KeyMapping.hpp +++ b/src/Data/KeyMapping.hpp @@ -37,7 +37,7 @@ std::optional