Witch-Game/src/DataStructures/DirectionButtonStatus.h
2025-05-07 17:59:50 +02:00

20 lines
No EOL
434 B
C++

#ifndef DIRECTION_BUTTON_STATUS_H
#define DIRECTION_BUTTON_STATUS_H
#include <math.h>
#include <SDL3/SDL.h>
#include "NormalizedDirection.h"
class DirectionButtonStatus
{
public:
bool UpPressed = false;
bool DownPressed = false;
bool LeftPressed = false;
bool RightPressed = false;
const float c_NormalizedDiagonal = (float)(1.0 / sqrt(2));
bool GetDirection(NormalizedDirection & ref_direction);
};
#endif