Fixed reverse 360 button mapping generation

Share and Options were not being mapped properly.
Resolves issue #33.
This commit is contained in:
Travis Nickles 2017-05-09 07:53:10 -07:00
parent 9e512deaeb
commit 0e6514a072

View File

@ -233,7 +233,11 @@ namespace DS4Windows
DS4Controls[] temp = new DS4Controls[defaultButtonMapping.Length]; DS4Controls[] temp = new DS4Controls[defaultButtonMapping.Length];
for (int i = 0, arlen = defaultButtonMapping.Length; i < arlen; i++) for (int i = 0, arlen = defaultButtonMapping.Length; i < arlen; i++)
{ {
temp[i] = (DS4Controls)defaultButtonMapping[i]; X360Controls mapping = defaultButtonMapping[i];
if (mapping != X360Controls.None)
{
temp[(int)mapping] = (DS4Controls)i;
}
} }
return temp; return temp;