NAME

Mac::MotionSensor - access to your accelerometer

SYNOPSIS

use Mac::MotionSensor;

my $sensor = Mac::MotionSensor->new;

# scaled output
$sensor->x;
$sensor->y;
$sensor->z;

# raw output
$sensor->raw_x;
$sensor->raw_y;
$sensor->raw_z;

$sendor->type;

DESCRIPTION

This module wraps the UniMotion framework

All axis methods returns a signed integer.

SEE ALSO

The UniMotion C library

http://unimotion.sourceforge.net/

CONTRIBUTE

http://github.com/robinedwards/Mac-MotionSensor

AUTHOR

Robin Edwards, <rge@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Robin Edwards

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.1 or, at your option, any later version of Perl 5 you may have available.

UniMotion is distributed under the LGPL license.