Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Storing multiple sf::Input instances possible?  (Read 1930 times)

0 Members and 1 Guest are viewing this topic.

scyth3s

  • Newbie
  • *
  • Posts: 20
    • View Profile
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...
"My church is not full of..."

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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).
Laurent Gomila - SFML developer

 

anything