Adding ViroKit. Needs AWSCore :(
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// VROInputControllerCardboardiOS.h
|
||||
// ViroRenderer
|
||||
//
|
||||
// Copyright © 2017 Viro Media. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef VROInputControllerCardboardiOS_H
|
||||
#define VROInputControllerCardboardiOS_H
|
||||
|
||||
#include <memory>
|
||||
#include "VRORenderContext.h"
|
||||
#include "VROInputControllerBase.h"
|
||||
#include "VROInputPresenterCardboardiOS.h"
|
||||
|
||||
class VROInputControllerCardboardiOS : public VROInputControllerBase {
|
||||
|
||||
public:
|
||||
VROInputControllerCardboardiOS(){}
|
||||
virtual ~VROInputControllerCardboardiOS(){}
|
||||
virtual VROVector3f getDragForwardOffset();
|
||||
void onProcess(const VROCamera &camera);
|
||||
void onScreenClicked();
|
||||
std::string getHeadset();
|
||||
std::string getController();
|
||||
|
||||
protected:
|
||||
std::shared_ptr<VROInputPresenter> createPresenter() {
|
||||
return std::make_shared<VROInputPresenterCardboardiOS>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void updateOrientation(const VROCamera &camera);
|
||||
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user