From e9ffb71c5fa36ac77a7e3ba56c39d5ad1f36a46d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 May 2005 09:23:30 +0000 Subject: [PATCH] add RageInput::AddHandler --- stepmania/src/RageInput.cpp | 6 ++++++ stepmania/src/RageInput.h | 1 + 2 files changed, 7 insertions(+) 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;