//   
//   hunglish - Hack the ISO_Group_* keysyms, define mouse-moving keys.
//   
//   Author: Lorentey Karoly <lorentey@elte.hu>.
//   
//   Time-stamp: <2001-06-06 01:40:29 lorentey>
// 

default xkb_compatibility "default" {
    include "default"

    // ISO_Group_Latch is used to shift to the other layout.
    // (Windows keys)
    interpret ISO_Group_Latch {
	useModMapMods= level1;
	action= SetGroup(group=+2);
    };

    // Select the first layout (group 1, US).
    interpret ISO_First_Group {
	action= LockGroup(group=1);
    };

    // Select the second layout (group 3, Hungarian).
    interpret ISO_Last_Group {
	action= LockGroup(group=3);
    };

    // Mouse move changes.

    interpret KP_1 { 
	action = MovePtr(x=-5,y= +5); 
    };
    interpret KP_2 { 
	action = MovePtr(x=+0,y= +5); 
    };
    interpret KP_3 { 
	action = MovePtr(x=+5,y=+5); 
    };
    interpret KP_4 { 
	action = MovePtr(x=-5,y=+0); 
    };
    interpret KP_6 { 
	action = MovePtr(x=+5,y=+0); 
    };
    interpret KP_7 { 
	action = MovePtr(x=-5,y=-5); 
    };
    interpret KP_8 { 
	action = MovePtr(x=+0,y=-5); 
    };
    interpret KP_9 { 
	action = MovePtr(x=+5,y=-5); 
    };
};
