X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_input.c;h=3220f77394969b9eba4e855de05f8aa53201456a;hb=bfacdd3b71576cf6ceaa83352d3a7d162adb75e1;hp=dc8d8acbe3c056937ad74c8ac3612c8cac9092a7;hpb=94478ae8163d1ce92ed54550f03e76bb9f2e1802;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/wm_input.c b/Usermode/Applications/axwin3_src/WM/wm_input.c index dc8d8acb..3220f773 100644 --- a/Usermode/Applications/axwin3_src/WM/wm_input.c +++ b/Usermode/Applications/axwin3_src/WM/wm_input.c @@ -22,7 +22,7 @@ tWindow *gpWM_DownStartWindow[MAX_BUTTONS]; // === CODE === tWindow *WM_int_GetWindowAtPos(int X, int Y) { - tWindow *win, *next_win, *ret; + tWindow *win, *next_win, *ret = NULL; next_win = gpWM_RootWindow; @@ -122,6 +122,9 @@ void WM_Input_KeyDown(uint32_t Character, uint32_t Scancode) void WM_Input_KeyFire(uint32_t Character, uint32_t Scancode) { struct sWndMsg_KeyAction msg; + + // TODO: Properly translate into KeySyms and Unicode + msg.KeySym = Scancode; msg.UCS32 = Character; WM_SendMessage(NULL, gpWM_FocusedWindow, WNDMSG_KEYFIRE, sizeof(msg), &msg);