0

How to us || smfl keyboard?

Hello everybody, I try for the first time the smfl lib and I try to us the condition or. I write this : If(sf::Keyboard::isKeyPressed(sf::Keyboard::Up||Down||Right||Left)) ; {... What is wrong with that?

25th Sep 2018, 11:09 AM
Jules Collon
Jules Collon - avatar
1 ответ
+ 4
I suppose it should be like sf::Keyboard::Up || sf::Keyboard::Down etc.
25th Sep 2018, 12:30 PM
Aleksander Szczepura
Aleksander Szczepura - avatar