InputCommon: Make "Cursor" inputs aware of the rendered aspect ratio.

This commit is contained in:
Jordan Woyak
2020-01-24 00:06:39 -06:00
parent 42c03c4dad
commit b92f6480a0
9 changed files with 59 additions and 21 deletions

View File

@ -6,6 +6,7 @@
#include <QuartzCore/QuartzCore.h>
#include "Common/Matrix.h"
#include "InputCommon/ControllerInterface/Device.h"
namespace ciface::Quartz
@ -64,10 +65,7 @@ public:
std::string GetSource() const override;
private:
struct
{
float x, y;
} m_cursor;
Common::Vec2 m_cursor;
uint32_t m_windowid;
};