summaryrefslogtreecommitdiff
path: root/module/ir.m
blob: a7bab18e866cff578987173cfe6f44f50474a5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Ir: module
{
	PATH:	con	"/dis/lib/ir.dis";
	SIMPATH:	con	"/dis/lib/irsim.dis";
	MPATH:	con	"/dis/lib/irmpath.dis";
	SAGEPATH:	con	"/dis/lib/irsage.dis";

	#
	# "standard" remote buttons
	#
	Zero:	con 0;
	One:	con 1;
	Two:	con 2;
	Three:	con 3;
	Four:	con 4;
	Five:	con 5;
	Six:	con 6;
	Seven:	con 7;
	Eight:	con 8;
	Nine:	con 9;
	ChanUP:	con 10;
	ChanDN:	con 11;
	VolUP:	con 12;
	VolDN:	con 13;
	FF:	con 14;
	Rew:	con 15;
	Up:	con 16;
	Dn:	con 17;
	Select:	con 18;
	Power:	con 19;
	Enter:	con 20;
	Rcl:	con 21;
	Record:	con 22;
	Mute:	con 23;
	#
	# Control
	#
	Error:	con 9999;
	EOF:	con -1;

	init: 		fn(c, p: chan of int): int;
	translate:	fn(c: int): int;
};