Project64-input: Flip x/y axis in structure
This commit is contained in:
parent
09de7617bf
commit
00556d4524
|
@ -68,9 +68,9 @@ typedef union
|
||||||
unsigned Reserved1 : 1;
|
unsigned Reserved1 : 1;
|
||||||
unsigned Reserved2 : 1;
|
unsigned Reserved2 : 1;
|
||||||
|
|
||||||
signed Y_AXIS : 8;
|
|
||||||
|
|
||||||
signed X_AXIS : 8;
|
signed X_AXIS : 8;
|
||||||
|
|
||||||
|
signed Y_AXIS : 8;
|
||||||
};
|
};
|
||||||
} BUTTONS;
|
} BUTTONS;
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
|
|
@ -149,7 +149,7 @@ void CControl_Plugin::UpdateKeys(void)
|
||||||
if (!m_AllocatedControllers) { return; }
|
if (!m_AllocatedControllers) { return; }
|
||||||
for (int32_t cont = 0; cont < sizeof(m_Controllers) / sizeof(m_Controllers[0]); cont++)
|
for (int32_t cont = 0; cont < sizeof(m_Controllers) / sizeof(m_Controllers[0]); cont++)
|
||||||
{
|
{
|
||||||
if (!m_Controllers[cont]->m_Present) { continue; }
|
if (!m_Controllers[cont]->Present()) { continue; }
|
||||||
if (!m_Controllers[cont]->m_RawData)
|
if (!m_Controllers[cont]->m_RawData)
|
||||||
{
|
{
|
||||||
GetKeys(cont, &m_Controllers[cont]->m_Buttons);
|
GetKeys(cont, &m_Controllers[cont]->m_Buttons);
|
||||||
|
|
|
@ -37,9 +37,9 @@ typedef union
|
||||||
unsigned Reserved1 : 1;
|
unsigned Reserved1 : 1;
|
||||||
unsigned Reserved2 : 1;
|
unsigned Reserved2 : 1;
|
||||||
|
|
||||||
signed Y_AXIS : 8;
|
|
||||||
|
|
||||||
signed X_AXIS : 8;
|
signed X_AXIS : 8;
|
||||||
|
|
||||||
|
signed Y_AXIS : 8;
|
||||||
};
|
};
|
||||||
} BUTTONS;
|
} BUTTONS;
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
|
|
@ -72,9 +72,9 @@ typedef union
|
||||||
unsigned Reserved1 : 1;
|
unsigned Reserved1 : 1;
|
||||||
unsigned Reserved2 : 1;
|
unsigned Reserved2 : 1;
|
||||||
|
|
||||||
signed Y_AXIS : 8;
|
|
||||||
|
|
||||||
signed X_AXIS : 8;
|
signed X_AXIS : 8;
|
||||||
|
|
||||||
|
signed Y_AXIS : 8;
|
||||||
};
|
};
|
||||||
} BUTTONS;
|
} BUTTONS;
|
||||||
|
|
||||||
|
|
|
@ -82,9 +82,9 @@ extern "C" {
|
||||||
unsigned Reserved1 : 1;
|
unsigned Reserved1 : 1;
|
||||||
unsigned Reserved2 : 1;
|
unsigned Reserved2 : 1;
|
||||||
|
|
||||||
signed Y_AXIS : 8;
|
|
||||||
|
|
||||||
signed X_AXIS : 8;
|
signed X_AXIS : 8;
|
||||||
|
|
||||||
|
signed Y_AXIS : 8;
|
||||||
};
|
};
|
||||||
} BUTTONS;
|
} BUTTONS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue