"masturbation 1766, from Mod.L. masturbationem, from L. masturbatus, pp. of masturbari. The long-standing speculation is that this is altered (probably by influence of turbare "to stir up") from *manstuprare, from manu, abl. of manus "hand" (see manual) + stuprare "defile" (oneself), from stuprum "defilement, dishonor," related to stupere "to be stunned, stupefied" (see stupid). But perhaps the first element represents an unattested *mazdo- "penis." An earlier technical word for this was Onanism (q.v.)." Since you asked, thought I'd look it up, seems the word does actually means defile oneself by hand, or stupify oneself by hand, or to stir up by hand. And here I always thought it may have latin origins, the Mastur hinting "to be master of ones domain"
as in you specifically.. no i've fucked an uncle i don't think i ever fucked a hat directly.. but worn an hat or he was wearing a hat.. yes