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:
parent
db695f11f6
commit
7e79663dce
3 changed files with 7 additions and 7 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue