The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SDL2::SensorEvent - Sensor event structure

SYNOPSIS

    use SDL2 qw[:all];
    # TODO: I need to whip up a quick example

DESCRIPTION

Fields

type - SDL_SENSORUPDATE
timestamp - In milliseconds, populated using SDL_GetTicks( )
which - The instance ID of the sensor
data - Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData( ).

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>