Esempio n. 1
0
        private static void RegisterArmsTactKey(HapticPlayer hapticPlayer, string folder, string key)
        {
            string fileName           = key.Substring(key.IndexOf("_") + 1);
            string patternFileContent = File.ReadAllText(folder + fileName + ".tact");

            hapticPlayer.RegisterTactFileStr(key, patternFileContent);
        }
        void TactFileRegister(string configPath, string filename, Feedback feedback)
        {
            if (feedbackMap.ContainsKey(feedback.feedbackType))
            {
                Feedback f = feedbackMap[feedback.feedbackType];
                f.feedbackFileCount += 1;
                feedbackMap[feedback.feedbackType] = f;

                hapticPlayer.RegisterTactFileStr(feedback.prefix + (feedbackMap[feedback.feedbackType].feedbackFileCount).ToString(), File.ReadAllText(configPath + "\\" + filename));
            }
        }