Gumshoe refers to a cop and also a private detective, like Sam Spade. If you walk the streets looking for clues long enough you get gum on your shoes. Gumshoes don't wearsneakers.
The gumshoe looked to see what had hit him. It was the floor.