File Coverage

lib/SDL2/HapticLeftRight.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package SDL2::HapticLeftRight {
2 2     2   18 use SDL2::Utils;
  2         5  
  2         18  
3             has
4              
5             # Header
6             type => 'uint16',
7              
8             # Replay
9             length => 'uint32',
10              
11             # Rumble
12             large_magnitude => 'uint16',
13             small_magnitude => 'uint16';
14              
15             =encoding utf-8
16              
17             =head1 NAME
18              
19             SDL2::HapticLeftRight - A structure containing a template for a Left/Right
20             effect
21              
22             =head1 SYNOPSIS
23              
24             use SDL2 qw[:all];
25             # TODO: I need to whip up a quick example
26              
27             =head1 DESCRIPTION
28              
29             A SDL2::HapticLeftRight is exclusively for the C effect.
30              
31             The Left/Right effect is used to explicitly control the large and small motors,
32             commonly found in modern game controllers. The small (right) motor is high
33             frequency, and the large (left) motor is low frequency.
34              
35             =head1 Fields
36              
37             =over
38              
39             =item C - C
40              
41             =item C - Duration of the effect in milliseconds
42              
43             =item C - Control of the large controller motor
44              
45             =item C - Control of the small controller motor
46              
47             =back
48              
49             =head1 AUTHOR
50              
51             Sanko Robinson Esanko@cpan.orgE
52              
53             =begin stopwords
54              
55              
56             =end stopwords
57              
58             =cut
59              
60             };
61             1;