mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-04 23:14:24 +01:00
25 lines
515 B
C
25 lines
515 B
C
|
#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};
|
||
|
};
|