Remove ICloseable

This commit is contained in:
Georg Hagen
2025-01-06 16:28:27 +01:00
parent 46c1d1f18f
commit ac0a0e84b4
22 changed files with 48 additions and 73 deletions

View File

@@ -6,12 +6,11 @@
#pragma once
#include "Base/ICloseable.hpp"
#include "InputKey.hpp"
namespace OpenVulkano::Input
{
class InputDevice : public ICloseable
class InputDevice
{
InputDeviceType deviceType = InputDeviceType::UNKNOWN;
int index = -1;
@@ -38,11 +37,11 @@ namespace OpenVulkano::Input
[[nodiscard]] virtual bool ReadButtonDown(int16_t key) const = 0;
public:
~InputDevice() override = default;
virtual ~InputDevice() = default;
virtual void Tick() {}
void Close() override
virtual void Close()
{
this->deviceType = InputDeviceType::UNKNOWN;
this->index = -1;