FS#134 - Fix Event::TextEntered ignoring the key repeat state
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1254 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
49b97bb09a
commit
78850be8df
@ -744,11 +744,14 @@ void WindowImplWin32::ProcessEvent(UINT Message, WPARAM WParam, LPARAM LParam)
|
|||||||
|
|
||||||
// Text event
|
// Text event
|
||||||
case WM_CHAR :
|
case WM_CHAR :
|
||||||
|
{
|
||||||
|
if (myKeyRepeatEnabled || ((LParam & (1 << 30)) == 0))
|
||||||
{
|
{
|
||||||
Event Evt;
|
Event Evt;
|
||||||
Evt.Type = Event::TextEntered;
|
Evt.Type = Event::TextEntered;
|
||||||
Evt.Text.Unicode = static_cast<Uint32>(WParam);
|
Evt.Text.Unicode = static_cast<Uint32>(WParam);
|
||||||
SendEvent(Evt);
|
SendEvent(Evt);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user