Unreal SDK  v1.1
Loading...
Searching...
No Matches
WeArtGraspEvents.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "WeArtCommon.h"
8#include "GameFramework/Actor.h"
9#include "WeArtGraspEvents.generated.h"
10
11DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHandControllerGraspSignature, HandSide, handSide, UWeArtTouchableObject*, weArtTouchableObject);
12DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHandControllerReleaseSignature, HandSide, handSide, UWeArtTouchableObject*, weArtTouchableObject);
13
14UCLASS()
15class WEARTPLUGIN_API AWeArtGraspEvents : public AActor
16{
17 GENERATED_BODY()
18
19public:
20 // Sets default values for this actor's properties
22
23protected:
24 // Called when the game starts or when spawned
25 virtual void BeginPlay() override;
26
27public:
28 // Called every frame
29 virtual void Tick(float DeltaTime) override;
30
31 UPROPERTY(BlueprintAssignable)
32 FOnHandControllerGraspSignature OnMiddlewareHandControllerGrasp;
33
34 UFUNCTION(BlueprintImplementableEvent)
35 void OnHandControllerGrasp(HandSide handSide, UWeArtTouchableObject* weArtTouchableObject);
36
37 UPROPERTY(BlueprintAssignable)
38 FOnHandControllerReleaseSignature OnMiddlewareHandControllerRelease;
39
40 UFUNCTION(BlueprintImplementableEvent)
41 void OnHandControllerRelease(HandSide handSide, UWeArtTouchableObject* weArtTouchableObject);
42
43};
HandSide
Definition: WeArtCommon.h:7
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnHandControllerGraspSignature, HandSide, handSide, UWeArtTouchableObject *, weArtTouchableObject)
Definition: WeArtGraspEvents.h:16