C++ Вопрос Smooth scrolling on imgui

Начинающий
Статус
Оффлайн
Регистрация
24 Июл 2021
Сообщения
4
Реакции[?]
0
Поинты[?]
0
So i tried to do smooth scrolling in imgui many times and i never got it, does anyone know how to do it correctly?
Once I achieved something similar but the speed was always the same using this code
Пожалуйста, авторизуйтесь для просмотра ссылки.
(no ad).
I understand that it is modifying ImGui::UpdateMouseWheel in imgui.cpp but honestly I don't understand how.
Cheers.
 
кто читает тот умрет
Участник
Статус
Оффлайн
Регистрация
29 Июл 2019
Сообщения
652
Реакции[?]
519
Поинты[?]
133K
its just a simple math formula with some logical checks, its easy to do (30-40 lines of code)
 
Сверху Снизу