Sins of a Solar Empire Xinput Id's?

Hello there!

I'm making the UI for the Halo mod: Sins of the Prophets and I stumbled upon some xinput related things when I was changing my controls and I was wondering if there's any complete list of all of the xinput ID's so I could get gamepad support working?

9,965 views 2 replies
Reply #1 Top

This code path hasn't been maintained so no promises that it still works but here are the mappings:

m_padButtonMasks.PushBack(PadButtonMask(XINPUT_GAMEPAD_DPAD_UP, 0, -1));

m_padButtonMasks.PushBack(PadButtonMask(XINPUT_GAMEPAD_DPAD_DOWN, 0, +1));
m_padButtonMasks.PushBack(PadButtonMask(XINPUT_GAMEPAD_DPAD_LEFT, -1, 0));
m_padButtonMasks.PushBack(PadButtonMask(XINPUT_GAMEPAD_DPAD_RIGHT, +1, 0));

m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_START);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_BACK);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_LEFT_THUMB);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_RIGHT_THUMB);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_LEFT_SHOULDER);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_RIGHT_SHOULDER);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_A);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_B);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_X);
m_normalButtonMasks.PushBack(XINPUT_GAMEPAD_Y);

+1 Loading…
Reply #2 Top

Thanks for replying so fast! I'm trying to change the mappings in the uimappings.setting file and it seems to apply its own values like:

ActionOpenResearchCombatScreen
NumMappings 1
Mapping
Device "GAMEPAD_BUTTONS"
DeviceInputID 0
isAltDown FALSE
isCtrlDown FALSE
isShiftDown FALSE

 

Would there be any way of seeing how the gamepad names and ID's are set if it's not too much trouble?