1#ifndef MOUSE_BINDINGS_H
2#define MOUSE_BINDINGS_H
7#include <SFML/Window/Mouse.hpp>
22 const sf::Mouse::Button button_1 = sf::Mouse::Button::Left,
23 const sf::Mouse::Button button_2 = sf::Mouse::Button::Right
31 std::map<action_number, sf::Mouse::Button> m_buttons;
The number of an action.
Definition action_number.h:12
The mouse bindings.
Definition mouse_bindings.h:19
const sf::Mouse::Button & get_button_for_action(const action_number &n) const
Get the button to do the selected action.
Definition mouse_bindings.cpp:18
std::ostream & operator<<(std::ostream &os, const mouse_bindings &keys) noexcept
Definition mouse_bindings.cpp:60
bool operator==(const mouse_bindings &lhs, const mouse_bindings &rhs) noexcept
Definition mouse_bindings.cpp:53
void test_mouse_bindings()
Test this class and its free functions.
Definition mouse_bindings.cpp:23