mirror of https://github.com/bjornbytes/lovr.git
Fix desktop_isDown;
This commit is contained in:
parent
e21b64155a
commit
1d079f0c95
|
@ -111,7 +111,7 @@ static bool desktop_getVelocity(const char* path, vec3 velocity, vec3 angularVel
|
|||
}
|
||||
|
||||
static bool desktop_isDown(const char* path, bool* down) {
|
||||
if (!strcmp(path, "hand/left") || !strcmp(path, "hand/right")) {
|
||||
if (!strcmp(path, "hand/left/trigger") || !strcmp(path, "hand/right/trigger")) {
|
||||
*down = lovrPlatformIsMouseDown(MOUSE_RIGHT);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue