Assorted warning fixes and data initialization to please valgrind

This commit is contained in:
Henrik Rydgård committed 2026-02-19 11:24:46 +01:00
1 parent 412bbb268a
commit 5a5c7028b9
14 files changed
+48 -41

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ float ControlMapper::MapAxisValue(float value, int vkId, const InputMapping &map
// If a signed axis is mapped to an unsigned mapping,
// convert it. This happens when mapping DirectInput triggers to analog speed,
// for example.
int direction;
int direction = 0;
if (IsSignedAxis(mapping.Axis(&direction))) {
// The value has been split up into two curInput values, so we need to go fetch the other
// and put them back together again. Kind of awkward, but at least makes the regular case simple...