public void Startup() { m_buttonStates = new bool[NUMBER_OF_GAMEPADS, NUMBER_OF_BUTTONS]; m_axisStates = new bool[NUMBER_OF_GAMEPADS, NUMBER_OF_AXES]; m_lastAxisValues = new float[NUMBER_OF_GAMEPADS, NUMBER_OF_AXES]; m_adapter = null; Reset(); }
public void SetAdapter(IGamepadStateAdapter adapter) { if (adapter != m_adapter) { m_adapter = adapter; Reset(); } }