add RageInput::AddHandler
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -15,6 +15,7 @@ public:
|
||||
void Update( float fDeltaTime );
|
||||
void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut);
|
||||
void WindowReset();
|
||||
void AddHandler( InputHandler *pHandler );
|
||||
|
||||
private:
|
||||
vector<InputHandler *> Devices;
|
||||
|
||||
Reference in New Issue
Block a user