How To Swap Weapon Like The Last Of Us

How can I make a swap system like The Last Of Us where you have this weapon wheel in a cross-shaped slot. I want to make the player be able to choose their primary and secondary weapon by only pressing left and right D-pad, where left is for the primary like a rifle, shotgun and sniper, and right is for the secondary like pistol and revolver. And I want to make the up and down key for the items.