Am I the only one having problems with this because of a bunch of endlines stuck in places where they shouldn't be? Could you possibly send this as an attachment instead?
On Mon, 15 Jul 2002 11:51:18 -0400 Roy Wood <[EMAIL PROTECTED]> wrote: > As mentioned in a previous posting to the blackbox mailing list, I > offer up a patch for bbkeys to support keyboard-mouse support. My > patch is the code only at this point. If it is acceptable, then some > other stuff needs to be tweaked (man pages, Perl config script, > bbconf, etc.). > > The basic idea is as described before: > > >I added the following actions to bbkeys: > > > > MouseUp - move cursor up > > MouseDown - move cursor down > > MouseLeft - move cursor left > > MouseRight - move cursor right > > > > MouseButton1 - send button 1 click to front window > > MouseButton2 - send button 2 click to front window > > MouseButton3 - send button 3 click to front window > > > > RootMouseButton1 - send button 1 click to root window > > RootMouseButton2 - send button 1 click to root window > > RootMouseButton3 - send button 1 click to root window > > Adding these things to the .bbkeysrc is easy. For example: > > KeyToGrab(KP_0), WithModifier(None), WithAction(RootMouseButton3) > KeyToGrab(KP_Equal), WithModifier(None), WithAction(MouseButton1) > KeyToGrab(KP_Divide), WithModifier(None), > WithAction(MouseButton2) KeyToGrab(KP_Multiply), > WithModifier(None), WithAction(MouseButton3) > > The only tricky ones are the mouse motion actions, since they allow > you to specify a movement distance: > > KeyToGrab(KP_8), WithModifier(None), WithAction(MouseUp), > Delta(10) KeyToGrab(KP_2), WithModifier(None), > WithAction(MouseDown) KeyToGrab(KP_6), WithModifier(None), > WithAction(MouseRight), > Delta(30) > KeyToGrab(KP_4), WithModifier(None), WithAction(MouseLeft) > > As mentioned before, the "Delta" value is crude at present, allowing > you to only specify vertical and horizontal movement deltas that apply > to all Mouse* actions. It is not possible (at the moment) to specify > something like alt+KP_8 moves up 10 pixels while control+KP_8 moves 20 > pixels. It is possible to have different horizontal and vertical > motion amounts though. > > > And the patches to grab_defs.hh, bbkeys.hh, and bbkeys.cc are as > follows. > (This is small, so please excuse the inclusion here.) > > Oh-- be sure to make clean before changing grab_defs.hh. The bbkeys > Makefile doesn't seem to track that file. > >
