diff options
| author | Filoppi <filippotarpini@hotmail.it> | 2020-07-01 22:47:51 +0300 |
|---|---|---|
| committer | Filoppi <filippotarpini@hotmail.it> | 2021-04-25 15:45:30 +0300 |
| commit | 3492f51eaf22306ebbce2961c3354415bdfcbf6c (patch) | |
| tree | c9a52cbbc399b458a7987730fac655f2a8002b57 /Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp | |
| parent | c1d041b8886e60400721b827dcf2eb7cce45eceb (diff) | |
OnScreenDisplay: a few fixes
-They might have never drawn if DrawMessages wasn't called before they actually expired
-Their fade was wrong if the duration of the message was less than the fade time
This makes them much more useful for debugging, I know there might be other means
of debugging like logs and imgui, but this was the simplest so that's what I used.
If you want to print the same message every frame, but with a slightly different value
to see the changes, it now work.
To compensate for the fact that they are now always rendered once,
so on start up a lot of old messages (printed while the emulation was off) could show up,
I've added a "drop" time, which means if a msg isn't rendered for the first
time within that time, it will be dropped and never rendered.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUAccelerometer.cpp')
0 files changed, 0 insertions, 0 deletions
