5.1 set control axes settings

Hi all.
I am creating my own character control settings system.
I understand how to set the usual buttons and have already done it.
but what if I want to set the camera control?
I press the button and I should intercept not pressing, but the movement of the mouse or joystick.
I suspect that I need to make a general system for intercepting any movement. but I don’t understand how to do it.

hi and welcome @EVM_Dezar

Can you add a little more information please?

What version of Unreal Engine?
Are you using Enhanced Input to create your controller inputs?
Maybe show an example of your input setup (screen shots)
C++ or Blueprints?

Once we have a little more we might be able to either help or point you to a good tutorial that will help you.