Qt: Add tilt sensor properly into the Game Pak override interface
Jeffrey Pfau jeffrey@endrift.com
Thu, 01 Jan 2015 00:43:33 -0800
2 files changed,
4 insertions(+),
2 deletions(-)
M
src/platform/qt/GamePakView.cpp
→
src/platform/qt/GamePakView.cpp
@@ -53,6 +53,7 @@
m_ui.sensorRTC->setChecked(thread->gba->memory.gpio.gpioDevices & GPIO_RTC); m_ui.sensorGyro->setChecked(thread->gba->memory.gpio.gpioDevices & GPIO_GYRO); m_ui.sensorLight->setChecked(thread->gba->memory.gpio.gpioDevices & GPIO_LIGHT_SENSOR); + m_ui.sensorTilt->setChecked(thread->gba->memory.gpio.gpioDevices & GPIO_TILT); } void GamePakView::gameStopped() {@@ -62,6 +63,7 @@
m_ui.sensorRTC->setChecked(false); m_ui.sensorGyro->setChecked(false); m_ui.sensorLight->setChecked(false); + m_ui.sensorTilt->setChecked(false); } void GamePakView::setLuminanceValue(int value) {
M
src/platform/qt/GamePakView.ui
→
src/platform/qt/GamePakView.ui
@@ -77,12 +77,12 @@ </property>
</widget> </item> <item row="5" column="1"> - <widget class="QCheckBox" name="sensorAccel"> + <widget class="QCheckBox" name="sensorTilt"> <property name="enabled"> <bool>false</bool> </property> <property name="text"> - <string>Accelerometer</string> + <string>Tilt</string> </property> </widget> </item>