Gesture-Simple
view release on metacpan or search on metacpan
bin/demo.pl view on Meta::CPAN
7576777879808182838485868788899091929394
my
$black
= SDL::Color->new(
-r
=> 0,
-g
=> 0,
-b
=> 0,
);
$self
->app->fill(
$screen_rect
,
$black
);
}
sub
update_gesture {
my
$self
=
shift
;
return
unless
$self
->is_gesturing;
# add the current point to our list of points for this gesture
push
@{
$self
->{gesture} }, [
@_
];
}
sub
end_gesture {
my
$self
=
shift
;
( run in 0.977 second using v1.01-cache-2.11-cpan-49f99fa48dc )