@@ -928,18 +928,18 @@ namespace RTE {
928
928
}
929
929
930
930
GUIButton *nextButtonToHighlight = nullptr ;
931
- Direction pressedDirection = GetNonMouseButtonControllerMovement ();
931
+ Directions pressedDirection = GetNonMouseButtonControllerMovement ();
932
932
switch (pressedDirection) {
933
- case Direction ::Up:
933
+ case Directions ::Up:
934
934
nextButtonToHighlight = HandleNonMouseUpInput ();
935
935
break ;
936
- case Direction ::Down:
936
+ case Directions ::Down:
937
937
nextButtonToHighlight = HandleNonMouseDownInput ();
938
938
break ;
939
- case Direction ::Left:
939
+ case Directions ::Left:
940
940
nextButtonToHighlight = HandleNonMouseLeftInput ();
941
941
break ;
942
- case Direction ::Right:
942
+ case Directions ::Right:
943
943
nextButtonToHighlight = HandleNonMouseRightInput ();
944
944
break ;
945
945
default :
@@ -955,14 +955,14 @@ namespace RTE {
955
955
m_NonMouseHighlightedButton->OnMouseLeave (0 , 0 , 0 , 0 );
956
956
m_NonMouseHighlightedButton = nextButtonToHighlight;
957
957
m_NonMouseHighlightedButton->OnMouseEnter (0 , 0 , 0 , 0 );
958
- } else if (!nextButtonToHighlight && pressedDirection != Direction ::None) {
958
+ } else if (!nextButtonToHighlight && pressedDirection != Directions ::None) {
959
959
g_GUISound.UserErrorSound ()->Play (m_MenuController->GetPlayer ());
960
960
}
961
961
}
962
962
963
963
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
964
964
965
- Direction InventoryMenuGUI::GetNonMouseButtonControllerMovement () {
965
+ Directions InventoryMenuGUI::GetNonMouseButtonControllerMovement () {
966
966
bool pressUp = m_MenuController->IsState (ControlState::PRESS_UP) || m_MenuController->IsState (ControlState::SCROLL_UP);
967
967
bool pressDown = m_MenuController->IsState (ControlState::PRESS_DOWN) || m_MenuController->IsState (ControlState::SCROLL_DOWN);
968
968
bool pressLeft = m_MenuController->IsState (ControlState::PRESS_LEFT);
@@ -984,15 +984,15 @@ namespace RTE {
984
984
m_GUIRepeatTimer.Reset ();
985
985
}
986
986
if (pressUp) {
987
- return Direction ::Up;
987
+ return Directions ::Up;
988
988
} else if (pressDown) {
989
- return Direction ::Down;
989
+ return Directions ::Down;
990
990
} else if (pressLeft) {
991
- return Direction ::Left;
991
+ return Directions ::Left;
992
992
} else if (pressRight) {
993
- return Direction ::Right;
993
+ return Directions ::Right;
994
994
}
995
- return Direction ::None;
995
+ return Directions ::None;
996
996
}
997
997
998
998
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
0 commit comments