First person gamepad camera for Android (move with LT, look around with RT)

This commit is contained in:
saschawillems 2016-06-20 22:08:50 +02:00
parent d8e362cc8e
commit 2e101fdd1e
3 changed files with 104 additions and 36 deletions

View file

@ -180,16 +180,10 @@ public:
} depthStencil;
// Gamepad state (only one pad supported)
struct
{
struct
{
float x = 0.0f;
float y = 0.0f;
float z = 0.0f;
float rz = 0.0f;
} axes;
glm::vec2 axisLeft = glm::vec2(0.0f);
glm::vec2 axisRight = glm::vec2(0.0f);
} gamePadState;
// OS specific