示例#1
0
 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();
 }
示例#2
0
 public void SetAdapter(IGamepadStateAdapter adapter)
 {
     if (adapter != m_adapter)
     {
         m_adapter = adapter;
         Reset();
     }
 }