rework API

This commit is contained in:
ohyzha
2024-11-06 09:48:53 +02:00
parent e2df88ca22
commit 3521ddeb1d
21 changed files with 296 additions and 230 deletions

View File

@@ -8,7 +8,6 @@
#include "InputDevice.hpp"
#include "Math/Math.hpp"
#include "Base/Event.hpp"
namespace OpenVulkano
{
@@ -18,7 +17,8 @@ namespace OpenVulkano
{
class InputDeviceMouse : public InputDevice
{
float axes[InputKey::Mouse::Axis::AXIS_LAST + 2] = { 0 };
static constexpr int AXES_SIZE = InputKey::Mouse::Axis::AXIS_LAST + 2;
float axes[AXES_SIZE] = { 0 };
uint8_t pressedButtons = 0, lastPressedButtons = 0;
double mousePosX = 0, mousePosY = 0;
IWindow* lastWindow = nullptr;
@@ -144,9 +144,6 @@ namespace OpenVulkano
{
return window == lastWindow;
}
Event<Math::Vector2i> onLeftButtonClick;
};
}
}