Added keyboard input handling
Windows only
This commit is contained in:
parent
33bb0eb2b8
commit
cca1c865d9
4 changed files with 47 additions and 12 deletions
|
|
@ -169,10 +169,9 @@ public:
|
|||
position -= glm::normalize(glm::cross(camFront, glm::vec3(0.0f, 1.0f, 0.0f))) * moveSpeed;
|
||||
if (keys.right)
|
||||
position += glm::normalize(glm::cross(camFront, glm::vec3(0.0f, 1.0f, 0.0f))) * moveSpeed;
|
||||
|
||||
updateViewMatrix();
|
||||
}
|
||||
}
|
||||
updateViewMatrix();
|
||||
};
|
||||
|
||||
// Update camera passing separate axis data (gamepad)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue