mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-02-03 09:01:03 +00:00
sensors corrections
This commit is contained in:
parent
6d85637786
commit
6f7c7c557a
|
@ -44,9 +44,10 @@ SDL_VITA_SensorInit(void)
|
||||||
{
|
{
|
||||||
sceMotionReset();
|
sceMotionReset();
|
||||||
sceMotionStartSampling();
|
sceMotionStartSampling();
|
||||||
// sceMotionMagnetometerOn();
|
// not sure if these are needed, we are reading unfiltered state
|
||||||
sceMotionSetAngleThreshold(0);
|
sceMotionSetAngleThreshold(0);
|
||||||
sceMotionSetGyroBiasCorrection(SCE_FALSE);
|
sceMotionSetDeadband(SCE_FALSE);
|
||||||
|
sceMotionSetTiltCorrection(SCE_FALSE);
|
||||||
|
|
||||||
SDL_sensors_count = 2;
|
SDL_sensors_count = 2;
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
struct sensor_hwdata
|
struct sensor_hwdata
|
||||||
{
|
{
|
||||||
float data[3];
|
float data[3];
|
||||||
int counter;
|
Uint32 counter;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
|
Loading…
Reference in a new issue