updating the build process
[xorg/xkeyboard-config] / compat / mousekeys
1
2 // $Xorg: mousekeys,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
3
4 // Interpretations for arrow keys and a bunch of other 
5 // common keysyms which make it possible to bind "mouse" 
6 // keys using xmodmap and activate or deactivate them 
7 // from the keyboard.
8
9 default partial xkb_compatibility "mousekeys" {
10
11     // Keypad actions.
12     //
13     interpret.repeat= True;
14
15     interpret KP_1 { 
16         action = MovePtr(x=-1,y= +1); 
17     };
18     interpret KP_End { 
19         action = MovePtr(x=-1,y= +1); 
20     };
21
22     interpret KP_2 { 
23         action = MovePtr(x=+0,y= +1); 
24     };
25     interpret KP_Down { 
26         action = MovePtr(x=+0,y= +1); 
27     };
28
29     interpret KP_3 { 
30         action = MovePtr(x=+1,y=+1); 
31     };
32     interpret KP_Next { 
33         action = MovePtr(x=+1,y=+1); 
34     };
35
36     interpret KP_4 { 
37         action = MovePtr(x=-1,y=+0); 
38     };
39     interpret KP_Left { 
40         action = MovePtr(x=-1,y=+0); 
41     };
42
43     interpret KP_6 { 
44         action = MovePtr(x=+1,y=+0); 
45     };
46     interpret KP_Right { 
47         action = MovePtr(x=+1,y=+0); 
48     };
49
50     interpret KP_7 { 
51         action = MovePtr(x=-1,y=-1); 
52     };
53     interpret KP_Home { 
54         action = MovePtr(x=-1,y=-1); 
55     };
56
57     interpret KP_8 { 
58         action = MovePtr(x=+0,y=-1); 
59     };
60     interpret KP_Up { 
61         action = MovePtr(x=+0,y=-1); 
62     };
63
64     interpret KP_9 { 
65         action = MovePtr(x=+1,y=-1); 
66     };
67     interpret KP_Prior { 
68         action = MovePtr(x=+1,y=-1); 
69     };
70
71     interpret KP_5 { 
72         action = PointerButton(button=default); 
73     };
74     interpret KP_Begin { 
75         action = PointerButton(button=default); 
76     };
77
78     interpret KP_F2 { 
79         action = SetPtrDflt(affect=defaultButton,button=1); 
80     };
81     interpret KP_Divide { 
82         action = SetPtrDflt(affect=defaultButton,button=1); 
83     };
84
85     interpret KP_F3 { 
86         action = SetPtrDflt(affect=defaultButton,button=2); 
87     };
88     interpret KP_Multiply { 
89         action = SetPtrDflt(affect=defaultButton,button=2); 
90     };
91
92     interpret KP_F4 { 
93         action = SetPtrDflt(affect=defaultButton,button=3); 
94     };
95     interpret KP_Subtract { 
96         action = SetPtrDflt(affect=defaultButton,button=3); 
97     };
98
99     interpret KP_Separator { 
100         action = PointerButton(button=default,count=2); 
101     };
102     interpret KP_Add { 
103         action = PointerButton(button=default,count=2);
104     };
105
106     interpret KP_0 { 
107         action = LockPointerButton(button=default,affect=lock); 
108     };
109     interpret KP_Insert { 
110         action = LockPointerButton(button=default,affect=lock); 
111     };
112
113     interpret KP_Decimal { 
114         action = LockPointerButton(button=default,affect=unlock); 
115     };
116     interpret KP_Delete { 
117         action = LockPointerButton(button=default,affect=unlock); 
118     };
119
120     interpret.repeat= False;
121
122
123     // New Keysym Actions.
124     //
125     interpret Pointer_Button_Dflt {
126         action= PointerButton(button=default);
127     };
128     interpret Pointer_Button1 {
129         action= PointerButton(button=1);
130     };
131     interpret Pointer_Button2 {
132         action= PointerButton(button=2);
133     };
134     interpret Pointer_Button3 {
135         action= PointerButton(button=3);
136     };
137     interpret Pointer_DblClick_Dflt {
138         action= PointerButton(button=default,count=2);
139     };
140     interpret Pointer_DblClick1 {
141         action= PointerButton(button=1,count=2);
142     };
143     interpret Pointer_DblClick2 {
144         action= PointerButton(button=2,count=2);
145     };
146     interpret Pointer_DblClick3 {
147         action= PointerButton(button=3,count=2);
148     };
149     interpret Pointer_Drag_Dflt {
150         action= LockPointerButton(button=default);
151     };
152     interpret Pointer_Drag1 {
153         action= LockPointerButton(button=1);
154     };
155     interpret Pointer_Drag2 {
156         action= LockPointerButton(button=2);
157     };
158     interpret Pointer_Drag3 {
159         action= LockPointerButton(button=3);
160     };
161
162     interpret Pointer_EnableKeys {
163         action= LockControls(controls=MouseKeys);
164     };
165     interpret Pointer_Accelerate {
166         action= LockControls(controls=MouseKeysAccel);
167     };
168     interpret Pointer_DfltBtnNext {
169         action= SetPtrDflt(affect=defaultButton,button= +1);
170     };
171     interpret Pointer_DfltBtnPrev {
172         action= SetPtrDflt(affect=defaultButton,button= -1);
173     };
174
175
176     // Allow an indicator for MouseKeys.
177     indicator "Mouse Keys" {
178 //      !allowExplicit;
179         indicatorDrivesKeyboard;
180         controls= MouseKeys;
181     };
182 };