mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 21:39:54 +02:00
Examples: Extracted gamepad code into ImGui_ImplGlfw_UpdateGamepads(). Renamed matching Win32 function for consistency.
Added more link to nothing's oversample document. Spacing bits.
This commit is contained in:
@ -150,7 +150,7 @@ static void ImGui_ImplWin32_UpdateMousePos()
|
||||
#endif
|
||||
|
||||
// Gamepad navigation mapping
|
||||
void ImGui_ImplWin32_UpdateGameControllers()
|
||||
static void ImGui_ImplWin32_UpdateGamepads()
|
||||
{
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
memset(io.NavInputs, 0, sizeof(io.NavInputs));
|
||||
@ -231,7 +231,7 @@ void ImGui_ImplWin32_NewFrame()
|
||||
}
|
||||
|
||||
// Update game controllers (if available)
|
||||
ImGui_ImplWin32_UpdateGameControllers();
|
||||
ImGui_ImplWin32_UpdateGamepads();
|
||||
}
|
||||
|
||||
// Allow compilation with old Windows SDK. MinGW doesn't have default _WIN32_WINNT/WINVER versions.
|
||||
|
Reference in New Issue
Block a user