FoveVRFunctionLibrary.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. /*
  3. * Function library for accessing data from the Fove SDK via blueprints
  4. * All functions in here simply forward to FoveHMD
  5. */
  6. #include "IFoveHMDPlugin.h"
  7. #include "Kismet/BlueprintFunctionLibrary.h"
  8. #include "FoveVRFunctionLibrary.generated.h"
  9. UCLASS()
  10. class UFoveVRFunctionLibrary : public UBlueprintFunctionLibrary
  11. {
  12. GENERATED_UCLASS_BODY()
  13. public:
  14. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  15. static bool IsHardwareConnected();
  16. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  17. static bool IsHardwareReady();
  18. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  19. static bool IsEyeTrackingCalibrating();
  20. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  21. static bool EnsureEyeTrackingCalibration();
  22. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  23. static bool GetGazeConvergence(bool bRelativeToHMD, FVector& outRayOrigin, FVector& outRayDirection, float& outDistance, float& outAccuracy);
  24. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  25. static bool GetGazeVector(bool bRelativeToHMD, FVector& outLeft, FVector& outRight);
  26. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  27. static bool GetGazeVector2D(FVector2D& outLeft, FVector2D& outRight);
  28. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  29. static bool ManualDriftCorrection3D(FVector Location);
  30. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  31. static bool CheckEyesTracked(bool& outLeft, bool& outRight);
  32. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  33. static bool CheckEyesClosed(bool& outLeft, bool& outRight);
  34. UFUNCTION(BlueprintCallable, Category = "FoveVR")
  35. static bool IsPositionReady();
  36. };