Files
itgmania212121/stepmania/src/ScreenMapControllers.h
T

88 lines
2.6 KiB
C++
Raw Normal View History

2004-06-08 05:22:33 +00:00
/* ScreenMapControllers - Maps device input to instrument buttons. */
2004-06-08 05:22:33 +00:00
#ifndef SCREEN_MAP_CONTROLLERS_H
#define SCREEN_MAP_CONTROLLERS_H
#include "ScreenWithMenuElements.h"
#include "BitmapText.h"
#include "InputMapper.h"
2005-12-07 05:59:14 +00:00
#include "ActorScroller.h"
2005-12-09 03:13:51 +00:00
#include "RageSound.h"
class ScreenMapControllers : public ScreenWithMenuElements
{
public:
ScreenMapControllers();
virtual void Init();
2005-12-06 22:13:28 +00:00
virtual void BeginScreen();
virtual void Update( float fDeltaTime );
virtual void Input( const InputEventPlus &input );
2005-12-05 17:03:46 +00:00
virtual void TweenOffScreen();
private:
virtual void HandleMessage( const RString& sMessage );
2005-12-09 04:25:30 +00:00
Actor *GetActorWithFocus();
2005-12-09 02:49:31 +00:00
void BeforeChangeFocus();
void AfterChangeFocus();
2005-12-08 19:43:42 +00:00
virtual bool GenericTweenOn() const { return true; }
void Refresh();
2004-09-09 16:12:00 +00:00
int m_iCurController;
int m_iCurButton;
int m_iCurSlot;
RageTimer m_WaitingForPress;
DeviceInput m_DeviceIToMap;
struct KeyToMap
{
GameButton m_GameButton;
2005-12-06 00:34:51 +00:00
// owned by m_Line
BitmapText *m_textMappedTo[MAX_GAME_CONTROLLERS][NUM_SHOWN_GAME_TO_DEVICE_SLOTS];
};
vector<KeyToMap> m_KeysToMap;
2006-01-26 06:17:57 +00:00
BitmapText m_textDevices;
BitmapText m_textLabel[MAX_GAME_CONTROLLERS];
2006-01-26 00:00:41 +00:00
AutoActor m_sprExit;
ActorFrame m_Line[MAX_GAME_BUTTONS+2]; // label, normal lines, exit
2005-12-07 05:59:14 +00:00
ActorScroller m_LineScroller;
2005-12-09 03:13:51 +00:00
RageSound m_soundChange;
RageSound m_soundDelete;
};
2004-06-08 05:22:33 +00:00
#endif
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/