diff --git a/stepmania/src/RageInput.cpp b/stepmania/src/RageInput.cpp index 2dea417e8e..4ea365de9c 100644 --- a/stepmania/src/RageInput.cpp +++ b/stepmania/src/RageInput.cpp @@ -46,6 +46,12 @@ void RageInput::WindowReset() Devices[i]->WindowReset(); } +void RageInput::AddHandler( InputHandler *pHandler ) +{ + ASSERT( pHandler != NULL ); + Devices.push_back( pHandler ); +} + /* * Copyright (c) 2001-2004 Chris Danford, Glenn Maynard * All rights reserved. diff --git a/stepmania/src/RageInput.h b/stepmania/src/RageInput.h index 20ae1aa735..f28bc431f8 100644 --- a/stepmania/src/RageInput.h +++ b/stepmania/src/RageInput.h @@ -15,6 +15,7 @@ public: void Update( float fDeltaTime ); void GetDevicesAndDescriptions(vector& vDevicesOut, vector& vDescriptionsOut); void WindowReset(); + void AddHandler( InputHandler *pHandler ); private: vector Devices;