all repos — mgba @ ac2c1417ad3acd412d254095161f1c7451b77c53

mGBA Game Boy Advance Emulator

Qt: Slow down sensor view polling
Vicki Pfau vi@endrift.com
Mon, 01 Oct 2018 16:36:31 -0700
commit

ac2c1417ad3acd412d254095161f1c7451b77c53

parent

12cf61f9fc0f3a38104d69bd61964d0099e136b3

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/SensorView.cppsrc/platform/qt/SensorView.cpp

@@ -32,7 +32,7 @@ connect(m_ui.timeNow, &QPushButton::clicked, [this] () {

m_ui.time->setDateTime(QDateTime::currentDateTime()); }); - m_timer.setInterval(2); + m_timer.setInterval(15); connect(&m_timer, &QTimer::timeout, this, &SensorView::updateSensors); if (!m_rotation || !m_rotation->readTiltX || !m_rotation->readTiltY) { m_ui.tilt->hide();