/* ----------------------------------------------------------------------------- Class: ScreenMapControllers Desc: Where the player maps device input to instrument buttons. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "ScreenWithMenuElements.h" #include "Sprite.h" #include "BitmapText.h" #include "PrefsManager.h" #include "InputMapper.h" #include "RageInputDevice.h" class ScreenMapControllers : public ScreenWithMenuElements { public: ScreenMapControllers( CString sName ); virtual ~ScreenMapControllers(); virtual void Update( float fDeltaTime ); virtual void DrawPrimitives(); virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); virtual void HandleScreenMessage( const ScreenMessage SM ); private: void KeyLeft(); void KeyRight(); void KeyUp(); void KeyDown(); void KeyBack(); void KeyStart(); void Refresh(); int m_iCurController; int m_iCurButton; int m_iCurSlot; int m_iWaitingForPress; DeviceInput m_DeviceIToMap; BitmapText m_textError; BitmapText m_textName[MAX_GAME_BUTTONS]; BitmapText m_textName2[MAX_GAME_BUTTONS]; BitmapText m_textMappedTo[MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS][NUM_GAME_TO_DEVICE_SLOTS]; ActorFrame m_Line[MAX_GAME_BUTTONS]; };