I believe it to be part of a sideplate for black powder gun with set trigger.
The protruding piece on side would be struck by the trigger spur.
the trigger would be pulled once to "arm" the trigger than a very light pull would release the trigger spur striking the lock discharging the weapon.
But I,ve been wrong before. HH,Mont