mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-05 22:03:36 +00:00
Merge pull request #282 from alloverse/fix-pico
Fix pico: build error, and controller location
This commit is contained in:
commit
53708ae3e3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue