More work on the event system, sf::Events are completely wrapped now.

This commit is contained in:
MitchellHansen
2017-01-14 13:49:56 -08:00
parent 36851ad011
commit 0e1e9af37c
10 changed files with 195 additions and 255 deletions

View File

@@ -2,9 +2,9 @@
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Vector2.hpp>
#include "util.hpp"
#include "Pub_Sub.hpp"
#include "Pub_Sub.h"
class Camera : public SfEventSubscriber{
class Camera : public VrEventSubscriber{
public:
enum DIRECTION { FORWARD, REARWARD, LEFT, RIGHT, UP, DOWN };
@@ -35,7 +35,7 @@ public:
sf::Vector2f get_direction();
virtual void update(SfEventPublisher* p, sf::Event e) override;
void update(VrEventPublisher* p, vr::Event e) override;
private: