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

@ -12,6 +12,7 @@ extern "C" {
#include <X11/keysym.h>
}
#include "Common/Matrix.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
namespace ciface::XInput2
@ -25,10 +26,8 @@ private:
{
char keyboard[32];
unsigned int buttons;
struct
{
float x, y;
} cursor, axis;
Common::Vec2 cursor;
Common::Vec2 axis;
};
class Key : public Input