ADD: Pop-up menu for disable bind added to the controls dialog.

FIX: I forgot to delete ControlsMapping instance.
This commit is contained in:
nachume committed 2013-05-23 09:39:36 +09:00
1 parent e2024674a4
commit 662df67d39
6 files changed
+137 -45

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ static inline int getPadCodeFromVirtualPovCode(unsigned int povCode)
{
int mergedCode = 0;
for (int i = 0; i < dinput_ctrl_map_size / sizeof(dinput_ctrl_map[0]); i += 2) {
if (dinput_ctrl_map[i] > 0xFF && dinput_ctrl_map[i] & povCode)
if (dinput_ctrl_map[i] != 0xFFFFFFFF && dinput_ctrl_map[i] > 0xFF && dinput_ctrl_map[i] & povCode)
mergedCode |= dinput_ctrl_map[i + 1];
}
return mergedCode;