mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Fixed minor warnings on Linux
This commit is contained in:
parent
3a732133cb
commit
00147856da
@ -167,6 +167,7 @@ bool InputImpl::IsKeyPressed(Keyboard::Key key)
|
||||
case Keyboard::F14: keysym = XK_F14; break;
|
||||
case Keyboard::F15: keysym = XK_F15; break;
|
||||
case Keyboard::Pause: keysym = XK_Pause; break;
|
||||
default: keysym = 0; break;
|
||||
}
|
||||
|
||||
// Convert to keycode
|
||||
@ -203,6 +204,7 @@ bool InputImpl::IsMouseButtonPressed(Mouse::Button button)
|
||||
case Mouse::Middle: return buttons & Button2Mask;
|
||||
case Mouse::XButton1: return false; // not supported by X
|
||||
case Mouse::XButton2: return false; // not supported by X
|
||||
default: return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user