i have added the extension and game platform mapper in playercollision and replace the movements with the attached image but itr doesnt work
You dont need the gamepad platform mapper behavior, you just need the Gamepad extension, after that you use the condition.
It works fine to me
If it didn't work for you, then the gamepad extension maybe does not support your gamepad type, create a complete new empty project and test your gameapd in it with gameapd extension.