| 1 | package Term::Caca::Event::Key::Release; | ||
| 2 | 1 | our $AUTHORITY = 'cpan:YANICK'; | |
| 3 | # abstract: event triggered by a key release | ||
| 4 | 1 | $Term::Caca::Event::Key::Release::VERSION = '3.0.0'; | |
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use parent 'Term::Caca::Event::Key'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | sub new { | ||
| 12 | 0 | ▶ | my $class = shift; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 13 | 0 | my $self = Term::Caca::Event::Key->new( @_ ); | |
| 14 | 0 | return bless $self, $class; | |
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | 1 | 1; | |
| 19 | |||
| 20 | __END__ | ||
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =encoding UTF-8 | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | Term::Caca::Event::Key::Release | ||
| 29 | |||
| 30 | =head1 VERSION | ||
| 31 | |||
| 32 | version 3.0.0 | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | use Term::Caca qw/ :events /; | ||
| 37 | |||
| 38 | my $t = Term::Caca->new; | ||
| 39 | while ( 1 ) { | ||
| 40 | my $event = $t->wait_for_event( | ||
| 41 | mask => $KEY_RELEASE, | ||
| 42 | ); | ||
| 43 | |||
| 44 | print "character typed: ", $event->char; | ||
| 45 | } | ||
| 46 | |||
| 47 | =head1 DESCRIPTION | ||
| 48 | |||
| 49 | Generated when a key is released. | ||
| 50 | |||
| 51 | =head1 METHODS | ||
| 52 | |||
| 53 | =head2 char() | ||
| 54 | |||
| 55 | Returns the character released. | ||
| 56 | |||
| 57 | =head1 SEE ALSO | ||
| 58 | |||
| 59 | L<Term::Caca::Event::Key>, L<Term::Caca::Event::Key::Press> | ||
| 60 | |||
| 61 | =head1 AUTHORS | ||
| 62 | |||
| 63 | =over 4 | ||
| 64 | |||
| 65 | =item * | ||
| 66 | |||
| 67 | John Beppu <beppu@cpan.org> | ||
| 68 | |||
| 69 | =item * | ||
| 70 | |||
| 71 | Yanick Champoux <yanick@cpan.org> | ||
| 72 | |||
| 73 | =back | ||
| 74 | |||
| 75 | =head1 COPYRIGHT AND LICENSE | ||
| 76 | |||
| 77 | This software is Copyright (c) 2018, 2013, 2011 by John Beppu. | ||
| 78 | |||
| 79 | This is free software, licensed under: | ||
| 80 | |||
| 81 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004 | ||
| 82 | |||
| 83 | =cut | ||