Skip to content

Commit

Permalink
add shortcut to allow saving profile at music select (ctrl s)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 23, 2017
1 parent fc8692e commit c82080d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "OptionsList.h"
#include "RageFileManager.h"
#include "ScreenTextEntry.h"
#include "ProfileManager.h"

static const char *SelectionStateNames[] = {
"SelectingSong",
Expand Down Expand Up @@ -529,6 +530,12 @@ bool ScreenSelectMusic::Input( const InputEventPlus &input )
SCREENMAN->SystemMessage(ssprintf("Differential reload of %i songs", newsongs));
return true;
}
else if (bHoldingCtrl && c == 'S' && m_MusicWheel.IsSettled() && input.type == IET_FIRST_PRESS)
{
PROFILEMAN->SaveProfile(PLAYER_1);
SCREENMAN->SystemMessage("Profile Saved");
return true;
}
else if( input.DeviceI.device == DEVICE_KEYBOARD && bHoldingCtrl && input.DeviceI.button == KEY_BACK && input.type == IET_FIRST_PRESS
&& m_MusicWheel.IsSettled() )
{
Expand Down

0 comments on commit c82080d

Please sign in to comment.