all repos — mgba @ 0fbba68b02817a3afa9257d15893b2f8d0a42d94

mGBA Game Boy Advance Emulator

src/platform/qt/SensorView.h (view raw)

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef QGBA_SENSOR_VIEW
 7#define QGBA_SENSOR_VIEW
 8
 9#include <QTimer>
10#include <QWidget>
11
12#include "ui_SensorView.h"
13
14struct GBARotationSource;
15
16namespace QGBA {
17
18class ConfigController;
19class GameController;
20class InputController;
21
22class SensorView : public QWidget {
23Q_OBJECT
24
25public:
26	SensorView(GameController* controller, InputController* input, QWidget* parent = nullptr);
27
28private slots:
29	void updateSensors();
30	void setLuminanceValue(int);
31	void luminanceValueChanged(int);
32
33private:
34	Ui::SensorView m_ui;
35
36	GameController* m_controller;
37	InputController* m_input;
38	GBARotationSource* m_rotation;
39	QTimer m_timer;
40};
41
42}
43
44#endif