diff --git a/stepmania/src/InputFilter.cpp b/stepmania/src/InputFilter.cpp index 7d3d631dac..b1fb7cd482 100644 --- a/stepmania/src/InputFilter.cpp +++ b/stepmania/src/InputFilter.cpp @@ -5,7 +5,23 @@ #include "RageUtil.h" #include "RageThreads.h" #include "Preference.h" +#include "Foreach.h" +#include +namespace +{ + /* Maintain a set of all interesting buttons: buttons which are being held + * down, or which were held down and need a RELEASE event. We use this to + * optimize InputFilter::Update, so we don't have to process every button + * we know about when most of them aren't in use. This set is protected + * by queuemutex. */ + typedef pair Button; + set