all repos — mgba @ f5346383425fdf8f013e1c931e3759783840e328

mGBA Game Boy Advance Emulator

Qt: Add tilt sensor properly into the Game Pak override interface
Jeffrey Pfau jeffrey@endrift.com
Thu, 01 Jan 2015 00:43:33 -0800
commit

f5346383425fdf8f013e1c931e3759783840e328

parent

85c3ed4178e8c7e8a8b161255693562ecf4c10d9

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/GamePakView.cppsrc/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.uisrc/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>