1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 13:03:38 +00:00

Merge pull request #282 from alloverse/fix-pico

Fix pico: build error, and controller location
This commit is contained in:
Bjorn 2020-08-17 12:32:43 -06:00 committed by GitHub
commit 53708ae3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,10 @@ void lovrPlatformOnKeyboardEvent(keyboardCallback callback) {
//
}
void lovrPlatformOnTextEvent(textCallback callback) {
// todo
}
void lovrPlatformGetMousePosition(double* x, double* y) {
*x = *y = 0.;
}
@ -306,6 +310,7 @@ static bool pico_getPose(Device device, float* position, float* orientation) {
uint32_t index = device - DEVICE_HAND_LEFT;
vec3_init(position, state.controllers[index].position);
quat_init(orientation, state.controllers[index].orientation);
position[1] += state.offset;
return state.controllers[index].active;
}