コード例 #1
0
 /// <summary>
 ///   Copy constructor.
 /// </summary>
 /// <param name="man">
 ///   The manager to copy.
 /// </param>
 public JoystickManager(JoystickManager man)
 {
     m_last    = new JoystickState(man.m_last);
     m_current = new JoystickState(man.m_current);
 }
コード例 #2
0
 /// <summary>
 ///   Updates the managed device states.
 /// </summary>
 public void Update()
 {
     m_last = new JoystickState(m_current);
     m_current.Update();
 }
コード例 #3
0
 /// <summary>
 ///   Constructor.
 /// </summary>
 public JoystickManager()
 {
     m_last    = new JoystickState();
     m_current = new JoystickState();
 }