Skip to content

Commit

Permalink
Change screenshot bind to F12 and fix scroll wheel scrolling during g…
Browse files Browse the repository at this point in the history
…ameplay

closes #134
  • Loading branch information
Drewol committed Nov 16, 2018
1 parent 4ebc3be commit c682b20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
bin/songs/*
maps.db
bin/Main.cfg
bin/screenshots
bin/log*

# Intermediate Files
x64
Expand Down Expand Up @@ -48,6 +50,3 @@ Makefile

# Document build files
docs/build

# Game screenshot folder
bin/screenshots
2 changes: 1 addition & 1 deletion Main/ScoreScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class ScoreScreen_Impl : public ScoreScreen
{
g_application->RemoveTickable(this);
}
if (key == SDLK_PRINTSCREEN)
if (key == SDLK_F12)
{
auto luaPopInt = [this]
{
Expand Down
3 changes: 3 additions & 0 deletions Main/SongSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,9 @@ class SongSelect_Impl : public SongSelect
}
void m_OnMouseScroll(int32 steps)
{
if (m_suspended)
return;

if (m_settingsWheel->Active)
{
m_settingsWheel->AdvanceSelection(steps);
Expand Down

0 comments on commit c682b20

Please sign in to comment.