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

Author Topic: Derived Input class  (Read 1753 times)

0 Members and 1 Guest are viewing this topic.

anza

  • Newbie
  • *
  • Posts: 2
    • View Profile
Derived Input class
« on: January 12, 2009, 06:45:55 am »
I can't seem to find a way to attach a class derived from sf::Input to an sf::RenderWindow object.  Is this possible without having to create an sf::Window derived class?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Derived Input class
« Reply #1 on: January 12, 2009, 07:49:57 am »
It's not possible, even with a class derived from sf::Window. Why do you want to do this?
Laurent Gomila - SFML developer

anza

  • Newbie
  • *
  • Posts: 2
    • View Profile
Derived Input class
« Reply #2 on: January 12, 2009, 08:53:52 am »
Well, it isn't necessary.  I just wanted to rewrite the virtual OnEvent of sf::Input.  I just decided to process the results afterward.