add m_iMusicWheelSwitchSpeed
This commit is contained in:
@@ -29,6 +29,7 @@ enum {
|
||||
IO_AUTOPLAY,
|
||||
IO_DELAYED_ESCAPE,
|
||||
IO_OPTIONS_NAVIGATION,
|
||||
IO_WHEEL_SPEED,
|
||||
NUM_INPUT_OPTIONS_LINES
|
||||
};
|
||||
|
||||
@@ -40,6 +41,7 @@ OptionRowData g_InputOptionsLines[NUM_INPUT_OPTIONS_LINES] = {
|
||||
{ "AutoPlay", 2, {"OFF","ON"} },
|
||||
{ "Back\nDelayed", 2, {"INSTANT","HOLD"} },
|
||||
{ "Options\nNavigation",2, {"SM STYLE","ARCADE STYLE"} },
|
||||
{ "Wheel\nSpeed", 4, {"SLOW","NORMAL","FAST","REALLY FAST"} },
|
||||
};
|
||||
|
||||
ScreenInputOptions::ScreenInputOptions() :
|
||||
@@ -77,6 +79,10 @@ void ScreenInputOptions::ImportOptions()
|
||||
m_iSelectedOption[0][IO_AUTOPLAY] = PREFSMAN->m_bAutoPlay;
|
||||
m_iSelectedOption[0][IO_DELAYED_ESCAPE] = PREFSMAN->m_bDelayedEscape ? 1:0;
|
||||
m_iSelectedOption[0][IO_OPTIONS_NAVIGATION] = PREFSMAN->m_bArcadeOptionsNavigation ? 1:0;
|
||||
m_iSelectedOption[0][IO_WHEEL_SPEED] =
|
||||
(PREFSMAN->m_iMusicWheelSwitchSpeed <= 5)? 0:
|
||||
(PREFSMAN->m_iMusicWheelSwitchSpeed <= 10)? 1:
|
||||
(PREFSMAN->m_iMusicWheelSwitchSpeed <= 15)? 2:3;
|
||||
}
|
||||
|
||||
void ScreenInputOptions::ExportOptions()
|
||||
@@ -86,6 +92,14 @@ void ScreenInputOptions::ExportOptions()
|
||||
PREFSMAN->m_bDelayedEscape = m_iSelectedOption[0][IO_DELAYED_ESCAPE] == 1;
|
||||
PREFSMAN->m_bAutoPlay = m_iSelectedOption[0][IO_AUTOPLAY] == 1;
|
||||
PREFSMAN->m_bArcadeOptionsNavigation= m_iSelectedOption[0][IO_OPTIONS_NAVIGATION] == 1;
|
||||
switch(m_iSelectedOption[0][IO_WHEEL_SPEED])
|
||||
{
|
||||
case 0: PREFSMAN->m_iMusicWheelSwitchSpeed = 5; break;
|
||||
case 1: PREFSMAN->m_iMusicWheelSwitchSpeed = 10; break;
|
||||
case 2: PREFSMAN->m_iMusicWheelSwitchSpeed = 15; break;
|
||||
case 3: PREFSMAN->m_iMusicWheelSwitchSpeed = 25; break;
|
||||
default: ASSERT(0);
|
||||
}
|
||||
}
|
||||
|
||||
void ScreenInputOptions::GoToPrevState()
|
||||
|
||||
Reference in New Issue
Block a user