Access the binding that is active for the action?

Hello there beautiful people,

I want my camera rotation to react differently to the mouse vs controller.
When using a mouse, the camera should only rotate when I’m holding mouse1. While the camera will always respond to the right stick.
This can be implemented if I can access which binding being used.

Of course, I can create a separate action but that doesn’t seem optimal to me.

Cheers!

I found out that I can use

.activeControl.device.layout

It will solve my problem for now. However, it will return null when I’m using the controller stick.