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

Author Topic: Why doesn't SFML use sf::vector in the Input class?  (Read 3641 times)

0 Members and 1 Guest are viewing this topic.

Mr. X

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Why doesn't SFML use sf::vector in the Input class?
« on: January 03, 2009, 11:49:40 am »
Hello,
I'm just wondering about the Input class.
Why doesn't SFML use sf::vector2i instead of two int?

Because it is easier to use for my Project, I tried to change it, and it works.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Why doesn't SFML use sf::vector in the Input class?
« Reply #1 on: January 03, 2009, 02:17:44 pm »
Vectors have been added after the sf::Input class was created, and I never changed it.
Laurent Gomila - SFML developer

Mr. X

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Why doesn't SFML use sf::vector in the Input class?
« Reply #2 on: January 03, 2009, 02:40:53 pm »
Would be great if you could change that...

Mr. X

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Why doesn't SFML use sf::vector in the Input class?
« Reply #3 on: January 03, 2009, 06:59:47 pm »
I found another class which isn't changed to vectors:
sf::Image

 

anything