File: Simple.pm

package info (click to toggle)
dizzy 0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: perl: 1,864; makefile: 12; xml: 12; sh: 6
file content (20 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Dizzy::RotatorSwitcher::Simple;

use strict;
use warnings;

use OpenGL qw(:all);
use Dizzy::Handlers;

sub init {
	Dizzy::Handlers::register(
		rotator_switch => sub {
			my %args = @_;
			# do stuff
			Dizzy::Handlers::invoke("rotator_switched", %args);
			Dizzy::Handlers::STOP;
		}
	);
}

1;