blob: 2bb7d1436779cc316dc467ff026aa7a0bc5dee2e (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// Copyright 2008 Nanorex, Inc. See LICENSE file for details.
%class NXOpenGLCamera
%header NXOpenGLCamera.h
%start Trackball::Initial
%map Trackball
%%
Initial
{
// trap meaningless actions
Default
Initial
{ }
rotateStartEvent(x: int, y: int)
Rotating
{ rotateStart(x,y); }
panStartEvent(x: int, y: int)
Panning
{ panStart(x,y); }
}
Rotating
{
// trap meaningless actions
Default
Rotating
{ }
rotatingEvent(x: int, y: int)
Rotating
{ rotate(x, y); }
rotateStopEvent(x: int, y: int)
Initial
{ rotateStop(x, y); }
}
Panning
{
// trap meaningless actions
Default
Panning
{ }
panEvent(x: int, y: int)
Panning
{ pan(x,y); }
panStopEvent(x: int, y: int)
Initial
{ panStop(x,y); }
}
%%
|