First person gamepad camera for Android (move with LT, look around with RT)
This commit is contained in:
parent
d8e362cc8e
commit
2e101fdd1e
3 changed files with 104 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue