Commit fc71ca4
committed
feat(mouse): Implement Cursor Capture functionality (#1369)
The Mouse Cursor Capture has 4 modes
"None": Game window does not capture the cursor
"InGame": Game window captures the cursor when playing and observing
"Always": Game window captures the cursor always in menus and game
"Auto": Applies mode "InGame" when Windowed, "Always" when Fullscreen
Adds new option "CursorCaptureMode" to Options.ini which uses the above option strings.1 parent 5856a3c commit fc71ca4
File tree
24 files changed
+642
-103
lines changed- GeneralsMD/Code
- GameEngineDevice
- Include/Win32Device/GameClient
- Source/Win32Device/GameClient
- GameEngine
- Include
- Common
- GameClient
- GameLogic
- Source
- Common
- GameClient
- GUI/GUICallbacks/Menus
- Input
- GameLogic/System
- Main
- Generals/Code
- GameEngineDevice
- Include/Win32Device/GameClient
- Source/Win32Device/GameClient
- GameEngine
- Include
- Common
- GameClient
- GameLogic
- Source
- Common
- GameClient
- GUI/GUICallbacks/Menus
- Input
- GameLogic/System
- Main
24 files changed
+642
-103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
142 | 157 | | |
143 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
144 | 162 | | |
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
148 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
149 | 181 | | |
150 | 182 | | |
151 | 183 | | |
| |||
228 | 260 | | |
229 | 261 | | |
230 | 262 | | |
| 263 | + | |
231 | 264 | | |
232 | 265 | | |
233 | 266 | | |
234 | | - | |
| 267 | + | |
| 268 | + | |
235 | 269 | | |
236 | 270 | | |
237 | 271 | | |
| |||
255 | 289 | | |
256 | 290 | | |
257 | 291 | | |
258 | | - | |
259 | | - | |
| 292 | + | |
| 293 | + | |
260 | 294 | | |
261 | 295 | | |
262 | 296 | | |
| |||
278 | 312 | | |
279 | 313 | | |
280 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
281 | 318 | | |
| 319 | + | |
| 320 | + | |
282 | 321 | | |
283 | 322 | | |
284 | 323 | | |
| |||
308 | 347 | | |
309 | 348 | | |
310 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
311 | 358 | | |
312 | 359 | | |
313 | 360 | | |
| |||
324 | 371 | | |
325 | 372 | | |
326 | 373 | | |
327 | | - | |
| 374 | + | |
328 | 375 | | |
329 | 376 | | |
330 | 377 | | |
| |||
368 | 415 | | |
369 | 416 | | |
370 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
371 | 421 | | |
372 | 422 | | |
373 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
349 | 367 | | |
350 | 368 | | |
351 | 369 | | |
| |||
1140 | 1158 | | |
1141 | 1159 | | |
1142 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1143 | 1168 | | |
1144 | 1169 | | |
1145 | 1170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2810 | 2810 | | |
2811 | 2811 | | |
2812 | 2812 | | |
2813 | | - | |
2814 | 2813 | | |
2815 | 2814 | | |
2816 | 2815 | | |
| |||
2820 | 2819 | | |
2821 | 2820 | | |
2822 | 2821 | | |
2823 | | - | |
2824 | 2822 | | |
2825 | 2823 | | |
2826 | 2824 | | |
| |||
3019 | 3017 | | |
3020 | 3018 | | |
3021 | 3019 | | |
3022 | | - | |
3023 | | - | |
3024 | | - | |
3025 | 3020 | | |
3026 | 3021 | | |
3027 | 3022 | | |
| |||
3070 | 3065 | | |
3071 | 3066 | | |
3072 | 3067 | | |
3073 | | - | |
3074 | 3068 | | |
3075 | 3069 | | |
3076 | 3070 | | |
| |||
0 commit comments