This interface is called On Global Event Function Pointer is called.
Implements Spices::ImguiSlate.
Definition at line 257 of file ImguiMainMenu.cpp.
258 {
259 EventDispatcher dispatcher(event);
260
261 dispatcher.Dispatch<KeyPressedEvent>([](KeyPressedEvent& event) {
262
263 const auto isPressedCtrl = []() {
265 };
266
267 switch (event.GetKeyCode())
268 {
270 {
271 if (isPressedCtrl())
272 {
275 });
276 }
277 break;
278 }
280 {
281 if (isPressedCtrl())
282 {
285 });
286 }
287 break;
288 }
290 {
291 if (isPressedCtrl())
292 {
295 });
296 }
297 break;
298 }
300 {
301 if (isPressedCtrl())
302 {
305 });
306 }
307 break;
308 }
310 {
311 if (isPressedCtrl())
312 {
315 });
316 }
317 break;
318 }
320 {
321 if (isPressedCtrl())
322 {
325 });
326 }
327 break;
328 }
330 {
331 if (isPressedCtrl())
332 {
335 });
336 }
337 break;
338 }
340 {
341 if (isPressedCtrl())
342 {
345 });
346 }
347 break;
348 }
350 {
351 if (isPressedCtrl())
352 {
355 });
356 }
357 break;
358 }
359 }
360
361 return false;
362 });
363 }
static std::shared_ptr< SlateStyleLayout > Get()
Get this single instance.
static auto AsyncTask(ThreadPoolEnum pool, F &&func, Args &&... args) -> std::future< decltype(func(std::forward< Args >(args)...))>
References Spices::Key::D1, Spices::Key::D2, Spices::Key::D3, Spices::Key::D4, Spices::Key::D5, Spices::Key::D6, Spices::Key::D7, Spices::Key::D8, Spices::Key::D9, Spices::EventDispatcher::EventDispatcher(), Spices::KeyEvent::GetKeyCode(), Spices::Input::IsKeyPressed(), Spices::Key::LeftControl, and Spices::Key::RightControl.