Qt: Add tilt sensor properly into the Game Pak override interface

This commit is contained in:
Jeffrey Pfau 2015-01-01 00:43:33 -08:00
parent 85c3ed4178
commit f534638342
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,7 @@ void GamePakView::gameStarted(GBAThread* thread) {
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 @@ void GamePakView::gameStopped() {
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) {

View File

@ -77,12 +77,12 @@
</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>