Project64-input: Flip x/y axis in structure

This commit is contained in:
zilmar 2020-07-07 11:36:10 +09:30
parent 09de7617bf
commit 00556d4524
5 changed files with 12 additions and 12 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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)

View File

@ -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;

View File

@ -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;