1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Reduce indentation.

This commit is contained in:
Thomas Harte
2025-08-29 23:02:34 -04:00
parent 8fded8f210
commit 95e6726468
+21 -21
View File
@@ -15,30 +15,30 @@ namespace Inputs {
some quantity of buttons.
*/
class Mouse {
public:
/*!
Indicates a movement of the mouse.
*/
virtual void move([[maybe_unused]] const int x, [[maybe_unused]] const int y) {}
public:
/*!
Indicates a movement of the mouse.
*/
virtual void move([[maybe_unused]] const int x, [[maybe_unused]] const int y) {}
/*!
@returns the number of buttons on this mouse.
*/
virtual int get_number_of_buttons() const {
return 1;
}
/*!
@returns the number of buttons on this mouse.
*/
virtual int get_number_of_buttons() const {
return 1;
}
/*!
Indicates that button @c index is now either pressed or unpressed.
The intention is that @c index be semantic, not positional:
0 for the primary button, 1 for the secondary, 2 for the tertiary, etc.
*/
virtual void set_button_pressed([[maybe_unused]] const int index, [[maybe_unused]] const bool is_pressed) {}
/*!
Indicates that button @c index is now either pressed or unpressed.
The intention is that @c index be semantic, not positional:
0 for the primary button, 1 for the secondary, 2 for the tertiary, etc.
*/
virtual void set_button_pressed([[maybe_unused]] const int index, [[maybe_unused]] const bool is_pressed) {}
/*!
Releases all depressed buttons.
*/
virtual void reset_all_buttons() {}
/*!
Releases all depressed buttons.
*/
virtual void reset_all_buttons() {}
};
}