/// <summary>
 /// Set the POV (vJoy DiscretePOV 1..4 - if set..)
 /// </summary>
 /// <param name="pov">The POV 1..4</param>
 /// <param name="value">The POV value</param>
 public void SetPOV(int pov, POVType value)
 {
     if (pov < 1 || pov > m_nPov)
     {
         return;
     }
     if (m_hasPov[pov].has)
     {
         m_hasPov[pov].current = (int)value; // read back storage
         m_joy.SetDiscPov(m_hasPov[pov].current, Index, (uint)pov);
     }
 }
Beispiel #2
0
 public void SetPOV(int index, int pov, POVType value)
 {
     m_joyState[index].POV &= (ushort)~((int)0xf << ((3 - pov) * 4));
     m_joyState[index].POV |= (ushort)((int)value << ((3 - pov) * 4));
 }
 public void SetPOV(int index, int pov, POVType value)
 {
     m_joyState[index].POV &= (ushort)~((int)0xf << ((3 - pov) * 4));
     m_joyState[index].POV |= (ushort)((int)value << ((3 - pov) * 4));
 }