I did a quick search using the terms "gyro mouse," as devices of your description would have some form of internal solid state gyroscope to sense movement. One of the results can be found on Amazon with reasonably good reviews. I did not perform an exhaustive search, but I'd be confident to suggest that there would be similar products from other manufacturers.
Another option which may be more challenging to implement while at the same time, rather high-techy/geeky/sci-fi implemtation is called the Leap Motion Controller, also from Amazon. It uses a set of detectors in a rectangular puck over which one waves and/or places one's hands. Specific motions can be user-programmed for just about anything. I'm not aware of similar devices of this nature but then again, it's not your primary focus.