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