The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/vive: Fix build on Android NDK by switching byte order utilities.

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
cb309612 974c68de

+2 -2
+2 -2
src/xrt/drivers/vive/vive_controller_driver.c
··· 553 553 static void 554 554 controller_handle_touch_position(struct vive_controller_device *d, uint8_t *buf) 555 555 { 556 - int16_t x = __le16_to_cpup((__le16 *)buf); 557 - int16_t y = __le16_to_cpup((__le16 *)(buf + 2)); 556 + int16_t x = __le16_to_cpu(*(__le16 *)buf); 557 + int16_t y = __le16_to_cpu(*(__le16 *)(buf + 2)); 558 558 d->state.trackpad.x = (float)x / INT16_MAX; 559 559 d->state.trackpad.y = (float)y / INT16_MAX; 560 560 if (d->state.trackpad.x != 0 || d->state.trackpad.y != 0)