Changes to player, and mesh renderer INCOMPLETE
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <InputComponent.h>
|
||||
#include <IInputComponent.h>
|
||||
#include <iostream>
|
||||
#include <InputEnums.h>
|
||||
|
||||
enum EInputDirection
|
||||
{
|
||||
FORWARD,
|
||||
BACKWARD,
|
||||
LEFT,
|
||||
RIGHT
|
||||
};
|
||||
class Player;
|
||||
|
||||
class PlayerInputComponent : public InputComponent
|
||||
class PlayerInputComponent : public IInputComponent
|
||||
{
|
||||
private:
|
||||
Player& PlayerCharacter;
|
||||
float lastX = 1600 / 2.0f;
|
||||
float lastY = 900 / 2.0f;
|
||||
bool bFirstMouse = true;
|
||||
bool bFreeMouse = false;
|
||||
|
||||
public:
|
||||
virtual void Update(float deltaTime)
|
||||
{
|
||||
|
||||
}
|
||||
};
|
||||
PlayerInputComponent(GLFWwindow* Window, Player& PlayerCharacter);
|
||||
void Update(float DeltaTime) override;
|
||||
void ProcessKeyboard(float DeltaTime);
|
||||
static void ProcessMouse(GLFWwindow* Window, double xposIn, double yposIn);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user