mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Synchronized with trunk
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1255 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
commit
472627f65f
@ -468,10 +468,13 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
// Text event
|
||||
case WM_CHAR :
|
||||
{
|
||||
Event event;
|
||||
event.Type = Event::TextEntered;
|
||||
event.Text.Unicode = static_cast<Uint32>(wParam);
|
||||
SendEvent(event);
|
||||
if (myKeyRepeatEnabled || ((lParam & (1 << 30)) == 0))
|
||||
{
|
||||
Event event;
|
||||
event.Type = Event::TextEntered;
|
||||
event.Text.Unicode = static_cast<Uint32>(wParam);
|
||||
SendEvent(event);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user