Rename Display to Window.
It makes more sense to be consistent and always call it window.
This commit is contained in:
parent
416a71f744
commit
24da7f45e0
33 changed files with 257 additions and 255 deletions
|
|
@ -61,7 +61,7 @@ void InputExample::update(double dt)
|
|||
}
|
||||
}
|
||||
|
||||
void InputExample::onSizeChanged(sp::Display* display, int width, int height)
|
||||
void InputExample::onSizeChanged(sp::Window* Window, int width, int height)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -70,10 +70,10 @@ void InputExample::onEvent(const sp::Event& event)
|
|||
{
|
||||
if (event.type == event.Key && !event.key.pressed) {
|
||||
if (event.key.code == sp::Keyboard::G) {
|
||||
getGraphics()->getDisplay()->grabCursor(true);
|
||||
getGraphics()->getWindow()->grabCursor(true);
|
||||
sp::Log::info("Mouse Grabbed");
|
||||
} else if (event.key.code == sp::Keyboard::U) {
|
||||
getGraphics()->getDisplay()->grabCursor(false);
|
||||
getGraphics()->getWindow()->grabCursor(false);
|
||||
sp::Log::info("Mouse Released");
|
||||
}
|
||||
} else if (event.type == event.MouseButton && event.mouseButton.button == sp::Mouse::Right) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue