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

@@ -1,5 +1,6 @@
#pragma once
#include "Camera.h"
#include "Pub_Sub.h"
Camera::Camera() {
@@ -86,18 +87,16 @@ int Camera::update(double delta_time) {
return 1;
}
void Camera::update(SfEventPublisher* p, sf::Event e)
{
void Camera::update(VrEventPublisher* p, vr::Event e) {
std::cout << "Cam event" << std::endl;
}
void Camera::look_at_center() {
direction = CartToNormalizedSphere(sf::Vector3f(75, 75, 75) - position);
}
sf::Vector2f* Camera::get_direction_pointer() {
return &direction;
}