1
0
Fork 0

include/Spectre/Input/Mouse.h rename Button1,Button2 to XButton1 and XButton2

Button1 and Button2 are defined by Xlib. So lets change our ones to avoid headache.
This commit is contained in:
Henrik Hautakoski 2020-12-26 17:30:32 +01:00
parent db695f11f6
commit 7e79663dce
3 changed files with 7 additions and 7 deletions

View file

@ -10,8 +10,8 @@ Mouse::~Mouse()
std::string Mouse::getButtonName(Button button)
{
switch(button) {
case Button::Button1 : return "Button1";
case Button::Button2 : return "Button2";
case Button::XButton1 : return "XButton1";
case Button::XButton2 : return "XButton2";
case Button::Left : return "Left";
case Button::Right : return "Right";
case Button::Middle : return "Middle";