| 1 | package Term::Caca::Event::Mouse::Button; | ||
| 2 | 3 | our $AUTHORITY = 'cpan:YANICK'; | |
| 3 | 3 | $Term::Caca::Event::Mouse::Button::VERSION = '3.0.0'; | |
| 4 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | extends 'Term::Caca::Event'; | |
| 9 | |||
| 10 | has index => | ||
| 11 | is => 'ro', | ||
| 12 | lazy => 1, | ||
| 13 | default => sub { | ||
| 14 | 0 | ▶ | Term::Caca::caca_get_event_mouse_button( $_[0]->event ); |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 15 | 3 | }; | |
| 16 | |||
| 17 | 0 | ▶ | sub left { return 1 == $_[0]->index } |
|
Subroutine
left: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | ▶ | sub right { return 3 == $_[0]->index } |
|
Subroutine
right: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | 0 | ▶ | sub middle { return 2 == $_[0]->index } |
|
Subroutine
middle: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | |||
| 21 | 3 | 1; | |
| 22 | |||
| 23 | __END__ | ||
| 24 | |||
| 25 | =pod | ||
| 26 | |||
| 27 | =encoding UTF-8 | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | Term::Caca::Event::Mouse::Button | ||
| 32 | |||
| 33 | =head1 VERSION | ||
| 34 | |||
| 35 | version 3.0.0 | ||
| 36 | |||
| 37 | =head1 AUTHORS | ||
| 38 | |||
| 39 | =over 4 | ||
| 40 | |||
| 41 | =item * | ||
| 42 | |||
| 43 | John Beppu <beppu@cpan.org> | ||
| 44 | |||
| 45 | =item * | ||
| 46 | |||
| 47 | Yanick Champoux <yanick@cpan.org> | ||
| 48 | |||
| 49 | =back | ||
| 50 | |||
| 51 | =head1 COPYRIGHT AND LICENSE | ||
| 52 | |||
| 53 | This software is Copyright (c) 2018, 2013, 2011 by John Beppu. | ||
| 54 | |||
| 55 | This is free software, licensed under: | ||
| 56 | |||
| 57 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004 | ||
| 58 | |||
| 59 | =cut | ||