mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Loss char when input with HGEInput in textbox(textfield) #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new textbox of textfield
2. type some text fast

What is the expected behaviour? What happens instead?
The typed string should appear in the textbox(textfield) but in fact there are 
some cases that some char may not get inputed in the textbox(textfield).

What version of the product are you using? On what operating system? Which 
back-end (SDL/Allegro/OpenGL/other)?
GUIChan0.8, Windows, HGE

Please provide any additional information below.
the _pollInput method of HGEInput class forget the InputEvent list in hge,
so just need change the the code to
void  HGEInput::_pollInput()
    {
        hgeInputEvent ie;

        while(mHGE->Input_GetEvent(&ie)) 
          pollKeyInput(ie);

        pollMouseInput();
    }

Original issue reported on code.google.com by darkfa...@gmail.com on 19 Aug 2010 at 3:30

GoogleCodeExporter commented 9 years ago
Makes sense. I see Input_GetEvent also returns mouse events, but for some 
reason the mouse events are implemented in a rather strange way in 
pollMouseInput(). I'll leave that be for now though, since I can't test HGE.

Original comment by b.lindeijer on 19 Aug 2010 at 7:30

GoogleCodeExporter commented 9 years ago
I've pushed your fix to the 0.8 branch and merged it to master. I'm not sure 
how likely it is that there will ever be a new 0.8 patch release (or a 0.9 
release for that matter), but at least it's in the repository now. :-)

Original comment by b.lindeijer on 19 Aug 2010 at 7:36