mirror of https://github.com/mgba-emu/mgba.git
Qt: Add tilt sensor properly into the Game Pak override interface
This commit is contained in:
parent
85c3ed4178
commit
f534638342
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue