mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-23 14:22:21 -08:00
text patches: checkpoint
This commit is contained in:
1 parent
cd82268a07
commit
bb85f6f692
22 files changed
+562
-565
No files matched your search
@@ -506,13 +506,17 @@ w32_wm_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
case WM_CHAR:
|
||||
{
|
||||
U32 character = wParam;
|
||||
if(character >= 32 && character != 127)
|
||||
if(character >= 10 && character != 127)
|
||||
{
|
||||
WM_Event *event = w32_wm_push_event(WM_EventKind_Text, window);
|
||||
if(lParam & bit29)
|
||||
{
|
||||
event->modifiers |= WM_Modifier_Alt;
|
||||
}
|
||||
if(character == '\r')
|
||||
{
|
||||
character = '\n';
|
||||
}
|
||||
event->character = character;
|
||||
}
|
||||
}break;
|
||||
|
||||
Reference in new issue
Block a user