use input.pn

This commit is contained in:
Glenn Maynard
2006-09-13 10:02:58 +00:00
parent 4f83f9b9ae
commit aeb9c89191
4 changed files with 5 additions and 13 deletions
+2 -8
View File
@@ -4,7 +4,6 @@
#include "GameSoundManager.h"
#include "GameConstantsAndTypes.h"
#include "GameState.h"
#include "Style.h"
#include "ThemeManager.h"
#include "ScreenDimensions.h"
#include "ActorUtil.h"
@@ -113,18 +112,13 @@ void ScreenPrompt::Input( const InputEventPlus &input )
if( input.DeviceI.device==DEVICE_KEYBOARD && input.type==IET_FIRST_PRESS )
{
PlayerNumber pn;
if( GAMESTATE->GetCurrentStyle() == NULL )
pn = (PlayerNumber)input.GameI.controller;
else
pn = GAMESTATE->GetCurrentStyle()->ControllerToPlayerNumber( input.GameI.controller );
switch( input.DeviceI.button )
{
case KEY_LEFT:
this->MenuLeft( pn );
this->MenuLeft( input.pn );
return;
case KEY_RIGHT:
this->MenuRight( pn );
this->MenuRight( input.pn );
return;
}
}