Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Listers should be put in different header files.  (Read 1048 times)

Kraythe

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 15
    • View Profile
Listers should be put in different header files.
« on: November 12, 2005, 04:45:48 AM »

It struck me while using OIS that including the OISEvents.h file would be problematic for a user. Once he includes that file, he now has Joystick and Keyboard and god knows what else defined in his code base even if he never uses it.

Im not clear why the KeyboardListener class isnt in Keyboard.h and similarly for all of the other listener and event classes. (note that Id love to get rid of the event classes completely but look at the other thread for that.)

Why dont we simply move them to the appropriate header files so that if I only want to include keyboard stuff I can.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Listers should be put in different header files.
« Reply #1 on: November 12, 2005, 08:57:37 AM »

I agree that they could be placed with their respective classes. At the time, it was just more convientent to have them all in one place. Since, they are only small classes with no real code.
Logged