Fix minor code issues flagged by PVS-Studio and reported by alphrixus.

This commit is contained in:
Henrik Rydgård committed 2024-10-10 14:10:30 +02:00
1 parent 6c8dc94691
commit e51c58716b
11 files changed
+62 -64

No files matched your search

-5
View File
@@ -85,11 +85,6 @@ static int GetOppositeVKey(int vkey) {
}
}
static bool IsAxisVKey(int vkey) {
// Little hacky but works, of course.
return GetOppositeVKey(vkey) != 0;
}
static bool IsUnsignedMapping(int vkey) {
return vkey == VIRTKEY_SPEED_ANALOG;
}