The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mac::MotionSensor - Access to your accelerometer

SYNOPSIS

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

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

  # raw output
  $x = $sensor->raw_x;
  $y = $sensor->raw_y;
  $z = $sensor->raw_z;

  $sendor->type;

DESCRIPTION

This module wraps the UniMotion c library

All axis methods return a signed integer.

CAVEATS

UniMotion won't build against x86_64, I am working on this issue

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.