Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Storing multiple sf::Input instances possible?
Print
Pages: [
1
]
Author
Topic: Storing multiple sf::Input instances possible? (Read 1940 times)
0 Members and 1 Guest are viewing this topic.
scyth3s
Newbie
Posts: 20
Storing multiple sf::Input instances possible?
«
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...
Logged
"My church is not full of..."
Laurent
Administrator
Hero Member
Posts: 32498
Storing multiple sf::Input instances possible?
«
Reply #1 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).
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Storing multiple sf::Input instances possible?
anything