Anything corespond to UCommonInputSubsystem::GetCurrentInputType with Enhanced input?

i’m using the enhanced input system and i want to detect if the input is from gamepad or keyboard

i know using the old system UCommonInputSubsystem::GetCurrentInputType can detect it

is there any way to detect it using Enhanced input?

thanks!