mirror of https://github.com/encounter/SDL.git
N3DS: Fix PrivateSensorUpdate call.
A new timestamp parameter was added in 2c51874
.
This commit is contained in:
parent
cb1972b3ba
commit
49c25b1daf
|
@ -165,7 +165,7 @@ UpdateN3DSAccelerometer(SDL_Sensor *sensor)
|
||||||
data[0] = (float) current_state.x * SDL_STANDARD_GRAVITY;
|
data[0] = (float) current_state.x * SDL_STANDARD_GRAVITY;
|
||||||
data[1] = (float) current_state.y * SDL_STANDARD_GRAVITY;
|
data[1] = (float) current_state.y * SDL_STANDARD_GRAVITY;
|
||||||
data[2] = (float) current_state.z * SDL_STANDARD_GRAVITY;
|
data[2] = (float) current_state.z * SDL_STANDARD_GRAVITY;
|
||||||
SDL_PrivateSensorUpdate(sensor, data, sizeof data);
|
SDL_PrivateSensorUpdate(sensor, 0, data, sizeof data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ UpdateN3DSGyroscope(SDL_Sensor *sensor)
|
||||||
data[0] = (float) current_state.x;
|
data[0] = (float) current_state.x;
|
||||||
data[1] = (float) current_state.y;
|
data[1] = (float) current_state.y;
|
||||||
data[2] = (float) current_state.z;
|
data[2] = (float) current_state.z;
|
||||||
SDL_PrivateSensorUpdate(sensor, data, sizeof data);
|
SDL_PrivateSensorUpdate(sensor, 0, data, sizeof data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue