#include "core/sbgl_input.h"
#include "sbgl_types.h"
#include <windows.h>
Go to the source code of this file.
◆ UNICODE
◆ WIN32_LEAN_AND_MEAN
| #define WIN32_LEAN_AND_MEAN |
◆ win32_internal_process_message()
| void win32_internal_process_message |
( |
sbgl_InputState * | input, |
|
|
UINT | msg, |
|
|
WPARAM | wparam, |
|
|
LPARAM | lparam ) |
Definition at line 98 of file input.c.
98 {
99 if (!input) return;
100 switch (msg) {
101 case WM_KEYDOWN:
102 case WM_SYSKEYDOWN: {
105
106
107 bool isRepeat = (lparam & (1 << 30)) != 0;
108 if (!isRepeat) {
110 }
112 }
113 break;
114 }
115 case WM_KEYUP:
116 case WM_SYSKEYUP: {
119 break;
120 }
121 case WM_MOUSEMOVE: {
122 input->
mouseX = LOWORD(lparam);
123 input->
mouseY = HIWORD(lparam);
124 break;
125 }
132 case WM_KILLFOCUS: {
133
134
137 break;
138 }
139 }
140}
◆ win32_internal_update_input_states()
Definition at line 142 of file input.c.
142 {
143 if (!input) return;
144
146
149
150
153
154
157 } else {
158
163 }
164}