aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/tab.cpp
diff options
context:
space:
mode:
authorrsn88872017-02-19 20:14:51 -0600
committerrsn88872017-02-22 16:52:09 -0600
commit45bd7a8b75ebd8227ec4a09e427a66b1bb2796d1 (patch)
tree65495f6ebadda9cdbd0415f44d516be0381f6078 /gui/widgets/tab.cpp
parent085332a3dc8b006144f46b47b77d888d5ba9e467 (diff)
downloadscummvm-rg350-45bd7a8b75ebd8227ec4a09e427a66b1bb2796d1.tar.gz
scummvm-rg350-45bd7a8b75ebd8227ec4a09e427a66b1bb2796d1.tar.bz2
scummvm-rg350-45bd7a8b75ebd8227ec4a09e427a66b1bb2796d1.zip
SDL: Fix erratic analog pointer + control options
Fixes erratic speeds in analog pointer motion Implemented option to set analog/keyboard pointer speed and control the analog joystick deadzone. The deadzone option appears only if the build supports analog joystick (via JOY_ANALOG define)
Diffstat (limited to 'gui/widgets/tab.cpp')
-rw-r--r--gui/widgets/tab.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp
index cf9dd5d962..8e8c6b48a1 100644
--- a/gui/widgets/tab.cpp
+++ b/gui/widgets/tab.cpp
@@ -277,6 +277,16 @@ void TabWidget::adjustTabs(int value) {
setActiveTab(tabID);
}
+int TabWidget::getFirstVisible() {
+ return _firstVisibleTab;
+}
+
+void TabWidget::setFirstVisible(int tabID) {
+ assert(0 <= tabID && tabID < (int)_tabs.size());
+ _firstVisibleTab = tabID;
+ _boss->draw();
+}
+
void TabWidget::reflowLayout() {
Widget::reflowLayout();