Ferby's Blog
These are just some random ramblings, because I have nothing better to do with my time.

Wednesday, October 31, 2007

Keyboard Bug

By John, Annie, Lucy and the Woof-Woofs at 8:42 AM

The biggest bug currently in the game is that when you click on a window outside of the game, like Firefox, and then click back to the game the game will (most of the time) stop accepting keyboard input. I thought this might be because of the code I wrote to manage keyboard input for what ever component had focus in the game, menus and maps. I figured that the component that had focus after coming back wasn't what it should be, but I did some testing last night and it seems that my key listener isn't even registering the key presses. So I'm at a loss on why this happened. Maybe it has something to do with the graphics changes I made. Maybe on JFrame or Canvas objects are lossing focus and not getting it back. I'll have to do some more testing later to see if I can find a solution.

 
Category:

0 comments so far.

Something to say?