Looks like a fuel gauge for a very old outboard boat motor.
One piece of 3, missing the float and a captured screw housing this piece "keys" into.
The gauge shows the last float reading until you press the button and it release the gauge needle, avoiding vibration issues.
But, that is a total "guess, on my part....