SFML community forums
Help => General => Topic started by: meissner61 on July 23, 2011, 10:43:12 pm
-
Hello guys, trying to compile a SFML 2.0 file since i was told that 1.6 has some bugs with AMD graphics cards :(
All goes well untill i get to your handling events (http://www.sfml-dev.org/tutorials/1.6/window-events.php) unfortunetly some code gets highlighted red and i get erros saying that sfml/window doesnt support this or that action. Any advice?
-
Hello !
Try with PollEvent instead of GetEvent().
http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php#a65b775f3b1c122b1acac569d99df8e29
;)
-
Hi oneiros, the poll event did clear up the get event problem;
I have quite a few more though :(
such as input, GetInput, Key, and Joy
I would like to be sure that i got all the nonsense out of the way before i start really digging deep into learning SFML so im thinking if i cant compile a tutorial program no point to go further for now.
-
See here (http://www.sfml-dev.org/forum/viewtopic.php?p=35091#35091) for a list of changes from SFML 1.6 to 2.0.
-
TY :)
-
okay i understand now - so if input has been removed
Input.IsKeyDown(sf::Keyboard::Left);
What should i change this too?
EDIT: Hope you guys update your tutorials soon heh
-
sf::Keyboard::IsKeyPressed()
Take also a look at the documentation ;)