Example #1
0
 public bool IsFeedbackRegistered(string key)
 {
     return(HapticApi.IsFeedbackRegistered(key));
 }
Example #2
0
 public bool IsPlaying()
 {
     return(HapticApi.IsPlaying());
 }
Example #3
0
 void OnDestroy()
 {
     HapticApi.Destroy();
 }
Example #4
0
 public void SubmitRegisteredVestRotation(string key, RotationOption option)
 {
     HapticApi.SubmitRegisteredWithOption(key, key, 1f, 1f, option.OffsetAngleX, option.OffsetY);
 }
Example #5
0
 public void SubmitRegistered(string key)
 {
     HapticApi.SubmitRegistered(key);
 }
Example #6
0
 public void TurnOff(string key)
 {
     HapticApi.TurnOffKey(key);
 }
Example #7
0
 public HapticPlayer2(string appId, string appName)
 {
     HapticApi.Initialise(appId, appName);
 }
Example #8
0
 public void SubmitRegistered(string key, string altKey, ScaleOption option)
 {
     HapticApi.SubmitRegisteredWithOption(key, altKey, option.Intensity, option.Duration, 0f, 0f);
 }
Example #9
0
 public void Register(string key, Project project)
 {
     HapticApi.RegisterFeedback(key, project.ToJsonObject().ToString());
 }
Example #10
0
 public void Submit(string key, PositionType position, byte[] motorBytes, int durationMillis)
 {
     HapticApi.SubmitByteArray(key, position, motorBytes, motorBytes.Length, durationMillis);
 }
Example #11
0
 public bool IsActive(PositionType type)
 {
     return(HapticApi.IsDevicePlaying(type));
 }
Example #12
0
 public void Disable()
 {
     HapticApi.DisableFeedback();
 }
Example #13
0
 public void Enable()
 {
     HapticApi.EnableFeedback();
 }
Example #14
0
 public void RegisterTactFileStrReflected(string key, string tactFileStr)
 {
     HapticApi.RegisterFeedbackFromTactFileReflected(key, tactFileStr);
 }
Example #15
0
 // Use this for initialization
 void Start()
 {
     HapticApi.Initialise();
 }
Example #16
0
 public BhapticsHaptic()
 {
     HapticApi.Initialise(Application.identifier, Application.productName);
 }
Example #17
0
 public void Dispose()
 {
     HapticApi.Destroy();
 }
Example #18
0
 public void SubmitRegistered(string key, string altKey, RotationOption rOption, ScaleOption sOption)
 {
     HapticApi.SubmitRegisteredWithOption(key, altKey, sOption.Intensity, sOption.Duration, rOption.OffsetAngleX, rOption.OffsetY);
 }
Example #19
0
 public bool IsConnect(PositionType type)
 {
     return(HapticApi.IsDevicePlaying(type));
 }
Example #20
0
 public void SubmitRegistered(string key, int startTimeMillis)
 {
     HapticApi.SubmitRegisteredStartMillis(key, startTimeMillis);
 }
Example #21
0
 public bool IsConnect(HapticDeviceType type, bool isLeft = true)
 {
     return(HapticApi.IsDevicePlaying(BhapticsUtils.ToPositionType(type, isLeft)));
 }
Example #22
0
 public void TurnOff()
 {
     HapticApi.TurnOff();
 }
Example #23
0
 public bool IsPlaying(string key)
 {
     return(HapticApi.IsPlayingKey(key));
 }
Example #24
0
 // Use this for initialization
 void Start()
 {
     HapticApi.Initialise(Application.identifier, Application.productName);
 }
Example #25
0
 public HapticPlayer2()
 {
     HapticApi.Initialise();
 }