Mouse and joystick sensitivity

I’m making a settings menu, and I thought about setting the sensitivity to rotate the camera.
the camera only turns to the right and to the left.
I did everything in logic bricks, I know it will only work in python, but it was easier to do it that way.
If I need not change my logic bricks I’m happy.
Mouse:

1,000 would be 25% of the sensitivity.

Joystick:

Z = 2.0 would be 25% of the sensitivity as well.

I think it would be nice to make this work with properties.

UPBGE 0.2.5