Oddly a 3 axis accelerometer is cheaper than those mercury or ball switches. An MMA7455 is $2 in singles. MMA7660 is only $1.50, crazy.
SMD, but I remember saving up my money to buy some of those first MEMs accelerometers. They've dropped so much that they are as cheap as passives. I buy a few just to add to projects for no reason but something like tap sensing/control.