aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUISpinControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUISpinControl.cpp')
-rw-r--r--guilib/GUISpinControl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/guilib/GUISpinControl.cpp b/guilib/GUISpinControl.cpp
index b8380efcb3..59676da085 100644
--- a/guilib/GUISpinControl.cpp
+++ b/guilib/GUISpinControl.cpp
@@ -62,7 +62,7 @@ CGUISpinControl::~CGUISpinControl(void)
bool CGUISpinControl::OnAction(const CAction &action)
{
- switch (action.actionId)
+ switch (action.GetID())
{
case REMOTE_0:
case REMOTE_1:
@@ -80,7 +80,7 @@ bool CGUISpinControl::OnAction(const CAction &action)
m_iTypedPos = 0;
strcpy(m_szTyped, "");
}
- int iNumber = action.actionId - REMOTE_0;
+ int iNumber = action.GetID() - REMOTE_0;
m_szTyped[m_iTypedPos] = iNumber + '0';
m_iTypedPos++;
@@ -165,9 +165,9 @@ bool CGUISpinControl::OnAction(const CAction &action)
break;
}
/* static float m_fSmoothScrollOffset = 0.0f;
- if (action.actionId == ACTION_SCROLL_UP)
+ if (action.GetID() == ACTION_SCROLL_UP)
{
- m_fSmoothScrollOffset += action.amount1 * action.amount1;
+ m_fSmoothScrollOffset += action.GetAmount() * action.GetAmount();
bool handled = false;
while (m_fSmoothScrollOffset > 0.4)
{