blob: 2dd3c8cccc00e3a97273437a3075b3926c6344c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2019 BogDan Vatra <bogdan@kde.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef ANDROIDGYROSCOPE_H
#define ANDROIDGYROSCOPE_H
#include <qgyroscope.h>
#include "sensoreventqueue.h"
class AndroidGyroscope : public SensorEventQueue<QGyroscopeReading>
{
public:
AndroidGyroscope(int type, QSensor *sensor, QObject *parent = nullptr);
protected:
// SensorEventQueue interface
void dataReceived(const ASensorEvent &event) override;
};
#endif // ANDROIDGYROSCOPE_H
|