SFML community forums

Help => Window => Topic started by: scyth3s on May 16, 2011, 07:03:36 pm

Title: Storing multiple sf::Input instances possible?
Post by: scyth3s on May 16, 2011, 07:03:36 pm
I would like to store input states for previous game loops, and the simplest way in XNA was simply to save the input state. IE: prevKB state = Keyboard.GetState();

Is it possible to do something like that in SFML? I can't seem to figure it out correctly...
Title: Storing multiple sf::Input instances possible?
Post by: Laurent on May 16, 2011, 07:28:35 pm
Nop, sf::Input gives access to input states, but it's not a storage for them. You'll have to create your own wrapper on top of it (can be really quickly done).