Skip to content
Snippets Groups Projects
Select Git revision
  • f7baa02190f185ec7ab85ce7b5777ddce3e0cf9c
  • develop default protected
  • master protected
  • 1.4.0
  • 1.3.0
  • 1.0.0
6 results

DisplayClusterInputDevice.h

Blame
  • DisplayClusterInputDevice.h 1.17 KiB
    #pragma once
    
    #include "IInputDevice.h"
    
    class FDisplayClusterInputDevice : public IInputDevice
    {
    public:
      FDisplayClusterInputDevice(const TSharedRef<FGenericApplicationMessageHandler>& InMessageHandler);
      virtual ~FDisplayClusterInputDevice();
    
      static  void PreInit             ();
    
    	virtual bool Exec                (UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar)                   override;
    	virtual void SendControllerEvents()                                                                       override;
    	virtual void SetChannelValue     (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value) override;
    	virtual void SetChannelValues    (int32 ControllerId, const FForceFeedbackValues& Values)                 override;
    	virtual void SetMessageHandler   (const TSharedRef<FGenericApplicationMessageHandler>& InMessageHandler)  override;
    	virtual void Tick                (float DeltaTime)                                                        override;
    
    private:
      TSharedPtr<FGenericApplicationMessageHandler> MessageHandler;
      TArray<const FKey*>                           AxisIndices   ;
      TArray<const FKey*>                           ButtonIndices ;
    };