//   
//   hunglish - Hack the ISO_Group_* keysyms, define mouse-moving keys.
//   
//   Author: Lorentey Karoly <lorentey@elte.hu>.
//   
//   Time-stamp: <2005-10-12 22:41:39 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);
    };

    virtual_modifiers Alt,Meta,Super,Hyper,ScrollLock;

    interpret Super_L+Any     {
        useModMapMods = level1;
	virtualModifier = Super;
	action = SetMods(modifiers=modMapMods);
    };

    interpret Super_L	{
	action = SetMods(modifiers=Super);
    };

    interpret Super_R+Any     {
        useModMapMods = level1;
	virtualModifier = Super;
	action = SetMods(modifiers=modMapMods);
    };

    interpret Super_R	{
	action = SetMods(modifiers=Super);
    };

//    interpret Menu {
//	action = PointerButton(button=2);
//    };

    // 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); 
    };
};
