Hi I think you are right both times The hammer at the back of a gun is the part that is cocked before firing. If the hammer is in the up position, the gun is safe to carry around. If you put the hammer down, the gun is immediately ready to fire But I believe that the metaphor is also used by truck drivers (maybe car drivers too) to refer to the accelerator pedal.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.