mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-05 13:53:38 +00:00
fake headset: fix reversed up/down movement
minecraft key conventions ;)
This commit is contained in:
parent
3575c09114
commit
a3d81b773c
|
@ -418,10 +418,10 @@ void lovrHeadsetUpdate(float dt)
|
||||||
v[0] = k;
|
v[0] = k;
|
||||||
}
|
}
|
||||||
if (glfwGetKey(w, GLFW_KEY_SPACE) == GLFW_PRESS) {
|
if (glfwGetKey(w, GLFW_KEY_SPACE) == GLFW_PRESS) {
|
||||||
v[1] = -k;
|
v[1] = k;
|
||||||
}
|
}
|
||||||
if (glfwGetKey(w, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS) {
|
if (glfwGetKey(w, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS) {
|
||||||
v[1] = k;
|
v[1] = -k;
|
||||||
}
|
}
|
||||||
|
|
||||||
// move
|
// move
|
||||||
|
|
Loading…
Reference in a new issue