If you were shot down over enemy territory in the Second World War, the thing that got you home might have been holding your trousers up.
MI9’s gadget makers
MI9 was the British intelligence department that helped servicemen escape and evade capture. Christopher Clayton Hutton and his small team were recruited to invent the gadgets. Science and History Museum Hutton hid compasses in pens and tunic buttons, and printed maps on silk so they would not rustle. Hansons Auctioneers

Two buttons make a compass
One of the simplest designs was a pair of ordinary-looking trouser fly buttons. One had a small spike on its crown. Balance the other on it, and magnetised spots turn it into a compass. Pairs like these went to the Special Operations Executive for missions behind enemy lines. Science and History Museum
The Imperial War Museums holds a pair of fly-button compasses that may have been used by Oliver Philpot, an RAF pilot shot down off Norway in 1941. Philpot was one of the men who escaped from Stalag Luft III in the “Wooden Horse” escape, and he made it to Sweden and back to Scotland. Imperial War Museums
The button that unscrewed backwards
Another type looked exactly like a standard brass button from an RAF Service Dress jacket, but its top half unscrewed to reveal a compass. Imperial War Museums Some had a reverse thread, so you opened them by turning clockwise. Compass Museum The idea, as one auction house describes it, was that a guard who found one and tried to unscrew it would only screw it tighter. Hansons Auctioneers

The secret office in Leeds
Many of these gadgets were bought through a section of the Ministry of Supply called CT6c, based at 9 Park Place in Leeds. It was really a clandestine operation that obtained silk and tissue escape maps, hidden compasses, civilian-style clothes and fake foreign clothing labels for MI9 and the Special Operations Executive. Imperial War Museums
One of its members was Charles Fraser-Smith, who the Imperial War Museums says was the likely inspiration for “Q” in Ian Fleming’s James Bond novels. Imperial War Museums
Beware of fakes
Real escape buttons are now collectors’ items, and the Compass Museum warns that many fakes are on sale. Compass Museum