Cemu/src/gui/components/wxInputDraw.h

25 lines
515 B
C
Raw Normal View History

2022-08-22 22:21:23 +02:00
#pragma once
#include "input/api/ControllerState.h"
#include "util/math/vector2.h"
#include <wx/window.h>
class wxInputDraw : public wxWindow
{
public:
wxInputDraw(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
~wxInputDraw();
virtual void OnRender(wxDC& dc);
void SetAxisValue(const glm::vec2& position);
void SetDeadzone(float deadzone);
private:
void OnPaintEvent(wxPaintEvent& event);
glm::vec2 m_position{};
float m_deadzone{0};
};