SFML community forums

Help => General => Topic started by: meissner61 on July 23, 2011, 10:43:12 pm

Title: Compiling a SFML 2.0 project
Post 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?
Title: Compiling a SFML 2.0 project
Post by: Oneiros on July 23, 2011, 11:49:22 pm
Hello !

Try with PollEvent instead of GetEvent().

http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php#a65b775f3b1c122b1acac569d99df8e29

;)
Title: Compiling a SFML 2.0 project
Post by: meissner61 on July 24, 2011, 12:56:34 am
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.
Title: Compiling a SFML 2.0 project
Post by: Nexus on July 24, 2011, 12:58:02 am
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.
Title: Compiling a SFML 2.0 project
Post by: meissner61 on July 24, 2011, 01:05:25 am
TY :)
Title: Compiling a SFML 2.0 project
Post by: meissner61 on July 24, 2011, 01:08:09 am
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
Title: Compiling a SFML 2.0 project
Post by: Nexus on July 24, 2011, 01:40:15 am
sf::Keyboard::IsKeyPressed()

Take also a look at the documentation ;)