use enum_add2
This commit is contained in:
@@ -791,14 +791,14 @@ InputDevice InputMapper::MultiPlayerToInputDevice( MultiPlayer mp )
|
||||
{
|
||||
if( mp == MultiPlayer_INVALID )
|
||||
return DEVICE_NONE;
|
||||
return (InputDevice)(mp + DEVICE_JOY1);
|
||||
return enum_add2( DEVICE_JOY1, mp );
|
||||
}
|
||||
|
||||
MultiPlayer InputMapper::InputDeviceToMultiPlayer( InputDevice id )
|
||||
{
|
||||
if( id == DEVICE_NONE )
|
||||
return MultiPlayer_INVALID;
|
||||
return (MultiPlayer)(id - DEVICE_JOY1);
|
||||
return enum_add2( MultiPlayer_1, id - DEVICE_JOY1 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user