StyleI.player duplicates MenuI.player when the style is set. It's
essentially being used as a hack to see if the style is set, and as a shortcut for converting from StyleInput back to GameInput, complicating InputEventPlus in the process. Remove it, and just pass along the PlayerNumber when it's actually needed. (incremental commit)
This commit is contained in:
@@ -46,11 +46,11 @@ public:
|
||||
|
||||
float GetSecsHeld( const GameInput &GameI, MultiPlayer mp = MultiPlayer_INVALID );
|
||||
float GetSecsHeld( const MenuInput &MenuI );
|
||||
float GetSecsHeld( const StyleInput &StyleI, MultiPlayer mp = MultiPlayer_INVALID );
|
||||
float GetSecsHeld( const StyleInput &StyleI, PlayerNumber pn, MultiPlayer mp = MultiPlayer_INVALID );
|
||||
|
||||
bool IsBeingPressed( const GameInput &GameI, MultiPlayer mp = MultiPlayer_INVALID, const DeviceInputList *pButtonState = NULL );
|
||||
bool IsBeingPressed( const MenuInput &MenuI );
|
||||
bool IsBeingPressed( const StyleInput &StyleI, MultiPlayer mp = MultiPlayer_INVALID );
|
||||
bool IsBeingPressed( const StyleInput &StyleI, PlayerNumber pn, MultiPlayer mp = MultiPlayer_INVALID );
|
||||
|
||||
void ResetKeyRepeat( const GameInput &GameI );
|
||||
void ResetKeyRepeat( const MenuInput &MenuI );
|
||||
|
||||
Reference in New Issue
Block a user