Device motion capture