mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Fix lag on events
Found on sanctum2, returning 0 in XPending & XEventsQueued make the SDL do something else than polling events and makes lag the event loop. Now the event loop returns 0 when there are no more events.
This commit is contained in:
parent
9fa4053551
commit
1016e7f47f
4 changed files with 78 additions and 69 deletions
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
IMGUI_IMPL_API bool ImGui_ImplX11_Init(void* display);
|
||||
IMGUI_IMPL_API bool ImGui_ImplX11_Init(void* display, void* window);
|
||||
IMGUI_IMPL_API void ImGui_ImplX11_Shutdown();
|
||||
IMGUI_IMPL_API void ImGui_ImplX11_NewFrame(void* window);
|
||||
IMGUI_IMPL_API void ImGui_ImplX11_NewFrame();
|
||||
|
||||
// Handler for Win32 messages, update mouse/keyboard data.
|
||||
// You may or not need this for your implementation, but it can serve as reference for handling inputs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue