X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_input.c;fp=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_input.c;h=223dbef98e58acae7ca9c901ee06accf656fb477;hb=305bad29632e0cf47307e010ae7dea55617f2dfd;hp=232407aef85da8c827717484743821035b0298fe;hpb=88547c29ae10d9bd709b7382a4bf78d94f0b2be4;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 232407ae..223dbef9 100644 --- a/Usermode/Applications/axwin3_src/WM/wm_input.c +++ b/Usermode/Applications/axwin3_src/WM/wm_input.c @@ -8,6 +8,7 @@ #include #include #include +#include #define MAX_BUTTONS 3 @@ -70,7 +71,7 @@ void WM_Input_MouseMoved(int OldX, int OldY, int NewX, int NewY) WM_SendMessage(NULL, win, WNDMSG_MOUSEMOVE, sizeof(msg), &msg); } -inline void WM_Input_int_SendBtnMsg(tWindow *Win, int X, int Y, int Index, int Pressed) +void WM_Input_int_SendBtnMsg(tWindow *Win, int X, int Y, int Index, int Pressed) { struct sWndMsg_MouseButton msg; @@ -114,6 +115,9 @@ void WM_Input_MouseButton(int X, int Y, int ButtonIndex, int Pressed) void WM_Input_KeyDown(uint32_t Character, uint32_t Scancode) { struct sWndMsg_KeyAction msg; + + WM_Hotkey_KeyDown(Scancode); + msg.KeySym = Scancode; msg.UCS32 = Character; WM_SendMessage(NULL, gpWM_FocusedWindow, WNDMSG_KEYDOWN, sizeof(msg), &msg); @@ -135,6 +139,9 @@ void WM_Input_KeyFire(uint32_t Character, uint32_t Scancode) void WM_Input_KeyUp(uint32_t Character, uint32_t Scancode) { struct sWndMsg_KeyAction msg; + + WM_Hotkey_KeyUp(Scancode); + msg.KeySym = Scancode; msg.UCS32 = Character; WM_SendMessage(NULL, gpWM_FocusedWindow, WNDMSG_KEYUP, sizeof(msg), &msg);