2 // $Xorg: mousekeys,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
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
9 default partial xkb_compatibility "mousekeys" {
13 interpret.repeat= True;
16 action = MovePtr(x=-1,y= +1);
19 action = MovePtr(x=-1,y= +1);
23 action = MovePtr(x=+0,y= +1);
26 action = MovePtr(x=+0,y= +1);
30 action = MovePtr(x=+1,y=+1);
33 action = MovePtr(x=+1,y=+1);
37 action = MovePtr(x=-1,y=+0);
40 action = MovePtr(x=-1,y=+0);
44 action = MovePtr(x=+1,y=+0);
47 action = MovePtr(x=+1,y=+0);
51 action = MovePtr(x=-1,y=-1);
54 action = MovePtr(x=-1,y=-1);
58 action = MovePtr(x=+0,y=-1);
61 action = MovePtr(x=+0,y=-1);
65 action = MovePtr(x=+1,y=-1);
68 action = MovePtr(x=+1,y=-1);
72 action = PointerButton(button=default);
75 action = PointerButton(button=default);
79 action = SetPtrDflt(affect=defaultButton,button=1);
82 action = SetPtrDflt(affect=defaultButton,button=1);
86 action = SetPtrDflt(affect=defaultButton,button=2);
88 interpret KP_Multiply {
89 action = SetPtrDflt(affect=defaultButton,button=2);
93 action = SetPtrDflt(affect=defaultButton,button=3);
95 interpret KP_Subtract {
96 action = SetPtrDflt(affect=defaultButton,button=3);
99 interpret KP_Separator {
100 action = PointerButton(button=default,count=2);
103 action = PointerButton(button=default,count=2);
107 action = LockPointerButton(button=default,affect=lock);
109 interpret KP_Insert {
110 action = LockPointerButton(button=default,affect=lock);
113 interpret KP_Decimal {
114 action = LockPointerButton(button=default,affect=unlock);
116 interpret KP_Delete {
117 action = LockPointerButton(button=default,affect=unlock);
120 interpret.repeat= False;
123 // New Keysym Actions.
125 interpret Pointer_Button_Dflt {
126 action= PointerButton(button=default);
128 interpret Pointer_Button1 {
129 action= PointerButton(button=1);
131 interpret Pointer_Button2 {
132 action= PointerButton(button=2);
134 interpret Pointer_Button3 {
135 action= PointerButton(button=3);
137 interpret Pointer_DblClick_Dflt {
138 action= PointerButton(button=default,count=2);
140 interpret Pointer_DblClick1 {
141 action= PointerButton(button=1,count=2);
143 interpret Pointer_DblClick2 {
144 action= PointerButton(button=2,count=2);
146 interpret Pointer_DblClick3 {
147 action= PointerButton(button=3,count=2);
149 interpret Pointer_Drag_Dflt {
150 action= LockPointerButton(button=default);
152 interpret Pointer_Drag1 {
153 action= LockPointerButton(button=1);
155 interpret Pointer_Drag2 {
156 action= LockPointerButton(button=2);
158 interpret Pointer_Drag3 {
159 action= LockPointerButton(button=3);
162 interpret Pointer_EnableKeys {
163 action= LockControls(controls=MouseKeys);
165 interpret Pointer_Accelerate {
166 action= LockControls(controls=MouseKeysAccel);
168 interpret Pointer_DfltBtnNext {
169 action= SetPtrDflt(affect=defaultButton,button= +1);
171 interpret Pointer_DfltBtnPrev {
172 action= SetPtrDflt(affect=defaultButton,button= -1);
176 // Allow an indicator for MouseKeys.
177 indicator "Mouse Keys" {
179 indicatorDrivesKeyboard;