Rename KeyMapping method
This commit is contained in:
parent
049544efc1
commit
b4cedf0598
@ -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);
|
||||
|
@ -37,7 +37,7 @@ std::optional<Button> fromIndex(unsigned int index);
|
||||
class KeyMapping {
|
||||
public:
|
||||
KeyMapping();
|
||||
void setPanelToKey(const Button& button, const sf::Keyboard::Key& key);
|
||||
void set_button_to_key(const Button& button, const sf::Keyboard::Key& key);
|
||||
std::optional<Button> key_to_button(const sf::Keyboard::Key& key);
|
||||
std::optional<sf::Keyboard::Key> button_to_key(const Button& button);
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user