Ejemplo n.º 1
0
        private bool InitHaptics()
        {
            bool result = true;

            if (Haptics.Open(ref m_hapticsHandle) != SmiResultCode.Success)
            {
                result = false;
            }
            else
            {
                m_hapticsNotes = new Haptics.HapticsNote[1];
                m_hapticsNotes[0].magnitude = 255;
                m_hapticsNotes[0].startingMagnitude = 0;
                m_hapticsNotes[0].endingMagnitude = 0;
                m_hapticsNotes[0].duration = 50;
                m_hapticsNotes[0].endTimeDuration = 0;
                m_hapticsNotes[0].startTimeDuration = 0;
                m_hapticsNotes[0].style = Haptics.NoteStyle.Sharp;
                m_hapticsNotes[0].period = 0;

                m_defaultHapticsNotification = DefaultNotification;

            }
            return result;
        }
Ejemplo n.º 2
0
        private bool InitHaptics()
        {
            bool result = true;

            if (Haptics.Open(ref m_hapticsHandle) != SmiResultCode.Success)
            {
                result = false;
            }
            else
            {
                m_hapticsNotes = new Haptics.HapticsNote[1];
                m_hapticsNotes[0].magnitude         = 255;
                m_hapticsNotes[0].startingMagnitude = 0;
                m_hapticsNotes[0].endingMagnitude   = 0;
                m_hapticsNotes[0].duration          = 50;
                m_hapticsNotes[0].endTimeDuration   = 0;
                m_hapticsNotes[0].startTimeDuration = 0;
                m_hapticsNotes[0].style             = Haptics.NoteStyle.Sharp;
                m_hapticsNotes[0].period            = 0;

                m_defaultHapticsNotification = DefaultNotification;
            }
            return(result);
        }