Implemented global inputs (sf::Keyboard, sf::Mouse, sf::Joystick) and removed the event-based sf::Input.
Window::WaitEvent now works with joystick events as well. Added Event::JoystickConnected and Event::JoystickDisconnected. Added Window::GetCursorPosition.
This commit is contained in:
parent
5469eaa8c0
commit
8621e45960
48 changed files with 2969 additions and 1517 deletions
|
@ -45,7 +45,7 @@ int main()
|
|||
window.Close();
|
||||
|
||||
// Escape key : exit
|
||||
if ((event.Type == sf::Event::KeyPressed) && (event.Key.Code == sf::Key::Escape))
|
||||
if ((event.Type == sf::Event::KeyPressed) && (event.Key.Code == sf::Keyboard::Escape))
|
||||
window.Close();
|
||||
|
||||
// Resize event : adjust viewport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue