Posted by: n2liquid | June 29, 2008

InputManager done, yep, yep!

Hello,

Hm, I said I would post soon and I ran up into a week with no updates. School problems. But anyway, here are the good thingies for today:
The InputManager has been completely rewritten and it is working fine. Differently from the last time we “finished” the InputManager, on this time I ended up thinking: “Humkay.. I think I’m not needing to see this code again soon”. On the last time, I thought: “Holy crap..! I really don’t wanna see this again soon!”. Instead, I think that now the code is okay, and that it’s going to be very intuitive for programmers to use it.

I have also editted many doxygen commentaries in many files. 29% of the code are comments, but I haven’t commented SonettoInputManager.cpp yet, and there are lots of uncommented classes throughout Sonetto. Perhaps we should comment them when we have some time.

Oh, and I almost forgot.. We are now using libSDL for input stuff, and we’ll be porting the AudioManager to SDL_audio soon (that’s my next step, I think). SDL will also be used to create a loading screen while Ogre boots up, and will probably be used together with Theora codec to display videos, but that’s a little far in the horizon for us to talk about.


Responses

  1. Not exactly, I’d rather use a Polygon for displaying videos, it’s better than using directdraw stuff, and we could use ogre directly to display it.

  2. Why not OIS for input?

  3. We’ve decided to move to SDL because it is by far a more active library, that, we are pretty sure, won’t die so fast. OIS seemed to me that was not in a state that could be called of “active development”, and also there is a problem with OIS. When an USB joystick is unplugged, it doesn’t alert the program about this, nor even detect the controller again when it is plugged back. So, basically, if someone were playing and the controller was somehow unplugged, he would have to reset the game to continue playing, and wouldn’t even be able to save. On SDL_Joystick there isn’t any alert when the joystick gets unplugged, fact that really bothers me, but at least if you plug the controller again it continues to work. Another good reason is that we’re reducing the number of used libraries, and this means a more lightweighting libSonetto, and an easier to get working environment. Not to mention we don’t have to bother with another library! ;) The lesser, the better, as long as quality is kept high.


Leave a response

Your response:

Categories