Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-ibm-thinkpad: Commit

device/ibm/thinkpad


Commit MetaInfo

Revisión3d6db2a848dafc82ba6743808108f82fb1d4c95d (tree)
Tiempo2012-02-06 21:59:33
AutorStefan Seidel <android@stef...>
CommiterStefan Seidel

Log Message

this is not correct but the UI rotation works correctly like this - need to investigate

Cambiar Resumen

Diferencia

--- a/libsensors/sensors.c
+++ b/libsensors/sensors.c
@@ -110,11 +110,10 @@ static int device__poll(struct sensors_poll_device_t *device,
110110 // Android imagines the device in portrait mode, but hdaps measures in landscape mode,
111111 // so swap x and y axis!
112112 case ABS_X:
113- data->acceleration.y = - (float) event.value * CONVERT;
113+ data->acceleration.x = (float) event.value * CONVERT;
114114 break;
115115 case ABS_Y:
116- data->acceleration.x = - (float) event.value * CONVERT;
117- break;
116+ data->acceleration.y = -(float) event.value * CONVERT;
118117 break;
119118 }
120119 } else if (event.type == EV_SYN) {
Show on old repository browser