combine with desktop project

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-04-10 23:20:19 +02:00
parent b6fb4eb65c
commit b3bf03999b
72 changed files with 65538 additions and 132 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "functional"
#include "ui/UIWidget.h"
#define DPAD_WIDTH (105)
class D_Pad final : public UIWidget {
public:
D_Pad(void* appState, float x, float y, float width, std::function<void(int)> callback);
void render() const override;
private:
float m_x;
float m_y;
float m_width;
std::function<void(int)> m_callback;
};