![]() |
Conquer Chess
Chess and Starcraft combined
|
The mouse bindings. More...
#include <mouse_bindings.h>
Public Member Functions | |
| mouse_bindings (const sf::Mouse::Button button_1=sf::Mouse::Button::Left, const sf::Mouse::Button button_2=sf::Mouse::Button::Right) | |
| const sf::Mouse::Button & | get_button_for_action (const action_number &n) const |
| Get the button to do the selected action. | |
The mouse bindings.
This class connects a mouse button to a mouse action:
| mouse_bindings::mouse_bindings | ( | const sf::Mouse::Button | button_1 = sf::Mouse::Button::Left, |
| const sf::Mouse::Button | button_2 = sf::Mouse::Button::Right |
||
| ) |
| const sf::Mouse::Button & mouse_bindings::get_button_for_action | ( | const action_number & | n | ) | const |
Get the button to do the selected action.