|
|
|
@ -162,6 +162,7 @@ bool CWinEventEmitter::processMessage (HWND hWnd, uint32 msg, WPARAM wParam, LPA
|
|
|
|
|
server->postEvent (new CEventKeyUp ((NLMISC::TKey)wParam, getKeyButton(_AltButton, _ShiftButton, _CtrlButton), this));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
#ifdef WM_UNICHAR
|
|
|
|
|
case WM_UNICHAR:
|
|
|
|
|
if (wParam != UNICODE_NOCHAR && _KeyboardEventsEnabled)
|
|
|
|
|
{
|
|
|
|
@ -170,11 +171,15 @@ bool CWinEventEmitter::processMessage (HWND hWnd, uint32 msg, WPARAM wParam, LPA
|
|
|
|
|
server->postEvent (new CEventChar ((u32char)wParam, getKeyButton(_AltButton, _ShiftButton, _CtrlButton), this));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
case WM_CHAR:
|
|
|
|
|
if (_KeyboardEventsEnabled)
|
|
|
|
|
{
|
|
|
|
|
//if (wParam < KeyCount)
|
|
|
|
|
//nlinfo("WM_CHAR with %u", wParam);
|
|
|
|
|
#ifndef WM_UNICHAR
|
|
|
|
|
// FIXME: Combine UTF-16 pairs
|
|
|
|
|
#endif
|
|
|
|
|
server->postEvent (new CEventChar ((ucchar)wParam, getKeyButton(_AltButton, _ShiftButton, _CtrlButton), this));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|