[default -> sm130futures] Bring up to date.
This commit is contained in:
@@ -74,6 +74,8 @@ Program/StepMania*.lib
|
|||||||
crashinfo.txt
|
crashinfo.txt
|
||||||
Utils/temp*
|
Utils/temp*
|
||||||
*.lnk
|
*.lnk
|
||||||
|
BuildLog.htm
|
||||||
|
*.pch
|
||||||
|
|
||||||
syntax: regexp
|
syntax: regexp
|
||||||
.*\#.*\#$
|
.*\#.*\#$
|
||||||
|
|||||||
@@ -9,6 +9,17 @@ Not all changes are documented, for various reasons.
|
|||||||
supported but exist anyways.)
|
supported but exist anyways.)
|
||||||
_____________________________________________________________________________
|
_____________________________________________________________________________
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
sm-ssc $NEXTVERSION | 2011????
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
It depends on who you ask.
|
||||||
|
It could be v1.2.5, it could be v1.3.0, it could even be StepMania 5.
|
||||||
|
|
||||||
|
20110329
|
||||||
|
--------
|
||||||
|
* [ScreenEdit] Changed sample playback button to L. [AJ]
|
||||||
|
* [ScreenGameplay] Announcers say combo messages again. [AJ]
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
sm-ssc v1.2.4 | 20110327
|
sm-ssc v1.2.4 | 20110327
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1996,7 +1996,7 @@ ShowAutogen=true
|
|||||||
AutogenX=40
|
AutogenX=40
|
||||||
AutogenY=0
|
AutogenY=0
|
||||||
AutogenOnCommand=
|
AutogenOnCommand=
|
||||||
AutogenSetCommand=%function(self,param) if param.CustomDifficulty then self:diffuse(CustomDifficultyToLightColor(param.CustomDifficulty)); self:strokecolor(CustomDifficultyToDarkColor(param.CustomDifficulty)); end end
|
AutogenSetCommand=
|
||||||
ShowStepsType=false
|
ShowStepsType=false
|
||||||
StepsTypeX=0
|
StepsTypeX=0
|
||||||
StepsTypeY=0
|
StepsTypeY=0
|
||||||
|
|||||||
@@ -142,8 +142,9 @@ static void StartMusic( MusicToPlay &ToPlay )
|
|||||||
{
|
{
|
||||||
LOG->Trace( "Found '%s'", ToPlay.m_sTimingFile.c_str() );
|
LOG->Trace( "Found '%s'", ToPlay.m_sTimingFile.c_str() );
|
||||||
Song song;
|
Song song;
|
||||||
if( SSCLoader::LoadFromSSCFile(ToPlay.m_sTimingFile, song) )
|
if( GetExtension(ToPlay.m_sTimingFile.c_str()) == ".ssc" )
|
||||||
{
|
{
|
||||||
|
SSCLoader::LoadFromSSCFile(ToPlay.m_sTimingFile, song);
|
||||||
ToPlay.HasTiming = true;
|
ToPlay.HasTiming = true;
|
||||||
ToPlay.m_TimingData = song.m_Timing;
|
ToPlay.m_TimingData = song.m_Timing;
|
||||||
// get cabinet lights if any
|
// get cabinet lights if any
|
||||||
@@ -151,8 +152,9 @@ static void StartMusic( MusicToPlay &ToPlay )
|
|||||||
if( pStepsCabinetLights )
|
if( pStepsCabinetLights )
|
||||||
pStepsCabinetLights->GetNoteData( ToPlay.m_LightsData );
|
pStepsCabinetLights->GetNoteData( ToPlay.m_LightsData );
|
||||||
}
|
}
|
||||||
else if( SMLoader::LoadFromSMFile(ToPlay.m_sTimingFile, song) )
|
else if( GetExtension(ToPlay.m_sTimingFile.c_str()) == ".sm" )
|
||||||
{
|
{
|
||||||
|
SMLoader::LoadFromSMFile(ToPlay.m_sTimingFile, song);
|
||||||
ToPlay.HasTiming = true;
|
ToPlay.HasTiming = true;
|
||||||
ToPlay.m_TimingData = song.m_Timing;
|
ToPlay.m_TimingData = song.m_Timing;
|
||||||
// get cabinet lights if any
|
// get cabinet lights if any
|
||||||
|
|||||||
@@ -315,8 +315,9 @@ public:
|
|||||||
float level;
|
float level;
|
||||||
|
|
||||||
// Mouse coordinates
|
// Mouse coordinates
|
||||||
unsigned x;
|
//unsigned x;
|
||||||
unsigned y;
|
//unsigned y;
|
||||||
|
int z; // mousewheel
|
||||||
|
|
||||||
/* Whether this button is pressed. This is level with a threshold and
|
/* Whether this button is pressed. This is level with a threshold and
|
||||||
* debouncing applied. */
|
* debouncing applied. */
|
||||||
@@ -324,12 +325,12 @@ public:
|
|||||||
|
|
||||||
RageTimer ts;
|
RageTimer ts;
|
||||||
|
|
||||||
DeviceInput(): device(InputDevice_Invalid), button(DeviceButton_Invalid), level(0), x(0), y(0), bDown(false), ts(RageZeroTimer) { }
|
DeviceInput(): device(InputDevice_Invalid), button(DeviceButton_Invalid), level(0), z(0), bDown(false), ts(RageZeroTimer) { }
|
||||||
DeviceInput( InputDevice d, DeviceButton b, float l=0 ): device(d), button(b), level(l), x(0), y(0), bDown(l > 0.5f), ts(RageZeroTimer) { }
|
DeviceInput( InputDevice d, DeviceButton b, float l=0 ): device(d), button(b), level(l), z(0), bDown(l > 0.5f), ts(RageZeroTimer) { }
|
||||||
DeviceInput( InputDevice d, DeviceButton b, float l, const RageTimer &t ):
|
DeviceInput( InputDevice d, DeviceButton b, float l, const RageTimer &t ):
|
||||||
device(d), button(b), level(l), x(0), y(0), bDown(level > 0.5f), ts(t) { }
|
device(d), button(b), level(l), z(0), bDown(level > 0.5f), ts(t) { }
|
||||||
DeviceInput( InputDevice d, DeviceButton b, const RageTimer &t, unsigned xPos=0, unsigned yPos=0 ):
|
DeviceInput( InputDevice d, DeviceButton b, const RageTimer &t, int zVal=0 ):
|
||||||
device(d), button(b), level(0), x(xPos), y(yPos), bDown(false), ts(t) { }
|
device(d), button(b), level(0), z(zVal), bDown(false), ts(t) { }
|
||||||
|
|
||||||
bool operator==( const DeviceInput &other ) const
|
bool operator==( const DeviceInput &other ) const
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -207,7 +207,7 @@ void ScreenEdit::InitEditMappings()
|
|||||||
m_EditMappingsDeviceInput.hold[EDIT_BUTTON_SAMPLE_LENGTH_DOWN][0] = DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT);
|
m_EditMappingsDeviceInput.hold[EDIT_BUTTON_SAMPLE_LENGTH_DOWN][0] = DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT);
|
||||||
m_EditMappingsDeviceInput.hold[EDIT_BUTTON_SAMPLE_LENGTH_DOWN][1] = DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT);
|
m_EditMappingsDeviceInput.hold[EDIT_BUTTON_SAMPLE_LENGTH_DOWN][1] = DeviceInput(DEVICE_KEYBOARD, KEY_RSHIFT);
|
||||||
|
|
||||||
m_EditMappingsDeviceInput.button[EDIT_BUTTON_PLAY_SAMPLE_MUSIC][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cm);
|
m_EditMappingsDeviceInput.button[EDIT_BUTTON_PLAY_SAMPLE_MUSIC][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cl);
|
||||||
|
|
||||||
m_EditMappingsDeviceInput.button[EDIT_BUTTON_OPEN_BGCHANGE_LAYER1_MENU][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cb);
|
m_EditMappingsDeviceInput.button[EDIT_BUTTON_OPEN_BGCHANGE_LAYER1_MENU][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cb);
|
||||||
m_EditMappingsDeviceInput.button[EDIT_BUTTON_OPEN_BGCHANGE_LAYER2_MENU][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cb);
|
m_EditMappingsDeviceInput.button[EDIT_BUTTON_OPEN_BGCHANGE_LAYER2_MENU][0] = DeviceInput(DEVICE_KEYBOARD, KEY_Cb);
|
||||||
|
|||||||
@@ -2517,9 +2517,11 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
if( !m_Toasty.IsTransitioning() && !m_Toasty.IsFinished() ) // don't play if we've already played it once
|
if( !m_Toasty.IsTransitioning() && !m_Toasty.IsFinished() ) // don't play if we've already played it once
|
||||||
m_Toasty.StartTransitioning();
|
m_Toasty.StartTransitioning();
|
||||||
}
|
}
|
||||||
else if( SM >= SM_100Combo && SM <= SM_1000Combo )
|
else if( ScreenMessageHelpers::ScreenMessageToString(SM).find("0Combo") != string::npos )
|
||||||
{
|
{
|
||||||
int iCombo = ( SM-(SM_100Combo+1) ) * 100;
|
int iCombo;
|
||||||
|
RString sCropped = ScreenMessageHelpers::ScreenMessageToString(SM).substr(3);
|
||||||
|
sscanf(sCropped.c_str(),"%d%*s",&iCombo);
|
||||||
PlayAnnouncer( ssprintf("gameplay %d combo",iCombo), 2 );
|
PlayAnnouncer( ssprintf("gameplay %d combo",iCombo), 2 );
|
||||||
}
|
}
|
||||||
else if( SM == SM_ComboStopped )
|
else if( SM == SM_ComboStopped )
|
||||||
|
|||||||
@@ -413,12 +413,21 @@ void InputHandler_DInput::UpdatePolled( DIDevice &device, const RageTimer &tm )
|
|||||||
break;
|
break;
|
||||||
case DIMOFS_Z:
|
case DIMOFS_Z:
|
||||||
{
|
{
|
||||||
neg = MOUSE_WHEELUP; pos = MOUSE_WHEELDOWN;
|
neg = MOUSE_WHEELDOWN; pos = MOUSE_WHEELUP;
|
||||||
val = state.lZ;
|
val = state.lZ;
|
||||||
|
//LOG->Trace("MouseWheel polled: %i",val);
|
||||||
|
INPUTFILTER->UpdateMouseWheel(val);
|
||||||
|
|
||||||
float l = SCALE( int(val), -120.0f, 120.0f, 0.0f, 1.0f );
|
/*
|
||||||
ButtonPressed( DeviceInput(dev, neg, max(-l,0), tm) );
|
if( (int)val != 0 )
|
||||||
ButtonPressed( DeviceInput(dev, pos, max(+l,0), tm) );
|
{
|
||||||
|
// positive values: WheelUp
|
||||||
|
// negative values: WheelDown
|
||||||
|
float l = SCALE( int(val), -120.0f, 120.0f, -1.0f, 1.0f );
|
||||||
|
ButtonPressed( DeviceInput(dev, neg, max(-l,0), tm) );
|
||||||
|
ButtonPressed( DeviceInput(dev, pos, max(+l,0), tm) );
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: LOG->MapLog( "unknown input",
|
default: LOG->MapLog( "unknown input",
|
||||||
@@ -515,10 +524,12 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm
|
|||||||
INPUTFILTER->UpdateCursorLocation((float)cursorPos.x,(float)cursorPos.y);
|
INPUTFILTER->UpdateCursorLocation((float)cursorPos.x,(float)cursorPos.y);
|
||||||
break;
|
break;
|
||||||
case DIMOFS_Z:
|
case DIMOFS_Z:
|
||||||
|
// positive values: WheelUp
|
||||||
|
// negative values: WheelDown
|
||||||
INPUTFILTER->UpdateMouseWheel(l);
|
INPUTFILTER->UpdateMouseWheel(l);
|
||||||
{
|
{
|
||||||
up = MOUSE_WHEELUP; down = MOUSE_WHEELDOWN;
|
up = MOUSE_WHEELUP; down = MOUSE_WHEELDOWN;
|
||||||
l = SCALE( int(evtbuf[i].dwData), -120.0f, 120.0f, 1.0f, -1.0f );
|
l = SCALE( int(evtbuf[i].dwData), -WHEEL_DELTA, WHEEL_DELTA, 1.0f, -1.0f );
|
||||||
DeviceInput diUp = DeviceInput(dev, up, max(-l,0), tm);
|
DeviceInput diUp = DeviceInput(dev, up, max(-l,0), tm);
|
||||||
DeviceInput diDown = DeviceInput(dev, down, max(+l,0), tm);
|
DeviceInput diDown = DeviceInput(dev, down, max(+l,0), tm);
|
||||||
ButtonPressed( diUp );
|
ButtonPressed( diUp );
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ void MouseDevice::AddElement( int usagePage, int usage, IOHIDElementCookie cooki
|
|||||||
m.y_max = iMax;
|
m.y_max = iMax;
|
||||||
break;
|
break;
|
||||||
case kHIDUsage_GD_Z:
|
case kHIDUsage_GD_Z:
|
||||||
|
case kHIDUsage_GD_Wheel: // also handle wheel
|
||||||
m.z_axis = cookie;
|
m.z_axis = cookie;
|
||||||
m.z_min = iMin;
|
m.z_min = iMin;
|
||||||
m.z_max = iMax;
|
m.z_max = iMax;
|
||||||
@@ -102,13 +103,19 @@ void MouseDevice::GetButtonPresses( vector<DeviceInput>& vPresses, IOHIDElementC
|
|||||||
{
|
{
|
||||||
// todo: add mouse axis stuff -aj
|
// todo: add mouse axis stuff -aj
|
||||||
const Mouse& m = m_Mouse;
|
const Mouse& m = m_Mouse;
|
||||||
|
HRESULT result;
|
||||||
|
IOHIDEventStruct hidEvent;
|
||||||
|
// result = (*m_Interface)->getElementValue(hidDeviceInterface,cookie,&hidEvent);
|
||||||
|
|
||||||
if( m.x_axis == cookie )
|
if( m.x_axis == cookie )
|
||||||
{
|
{
|
||||||
// INPUTFILTER->UpdateCursorLocation(value,m.y_axis);
|
//INPUTFILTER->UpdateCursorLocation(value,m.y_axis);
|
||||||
|
LOG->Trace("Mouse X: Value = %i",value);
|
||||||
}
|
}
|
||||||
else if( m.y_axis == cookie )
|
else if( m.y_axis == cookie )
|
||||||
{
|
{
|
||||||
// INPUTFILTER->UpdateCursorLocation(m.x_axis,value);
|
//INPUTFILTER->UpdateCursorLocation(m.x_axis,value);
|
||||||
|
LOG->Trace("Mouse Y: Value = %i",value);
|
||||||
}
|
}
|
||||||
else if( m.z_axis == cookie )
|
else if( m.z_axis == cookie )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user