Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!dutrun!dutncp8!adri From: adri@dutncp8.tudelft.nl (A.B. van Woerkom) Newsgroups: comp.windows.x Subject: Re: Remapping the keyboard to emulate mouse button Message-ID: Date: 22 Feb 91 08:04:24 GMT References: <5973@hplabsb.HP.COM> Sender: news@dutrun.UUCP Lines: 46 mgsmith@hplabsb.HP.COM (Michael Smith) writes: >[...] Therefore I would >like to remap the keyboard such that one of the keyboard buttons >(the lower left [Enter] button for example) can be used by the left >hand for button1 of the mouse while the right hand would actually >move the trackball. I looked at xmodmap but it didn't prove fruitful. >Any ideas out there? My wrists would really appreciate it. >Mike Smith >HP Labs The following probably only applies to HP-equipment (I am on a HP9000/360), but seeing Mike's sig this shouldn't be a problem: The HP window server (or at least the one on my machine) looks in the file /usr/lib/X11/X?devices (? stands for the display number, e.g. if you are on thingy:0 X0devices is used) to see which devices to use as its keyboard and pointer. To use a keypoard as pointer it should contain the lines: first keyboard keyboard #use first keyboard on HP-HIL as keyboard first keyboard pointer #use same also a pointer first trackball other #trackerball also moves pointer When a keyboard is given for a pointer a device the server will also examine the file /usr/lib/X11/X?pointerkeys to find out which keys will move the pointer and which keys will be used for buttons. E.g. you can specify that the first three function keys will act as buttons by adding the lines: pointer_button1_key f1 pointer_button2_key f2 pointer_button2_key f2 For more details look in the files mentioned, the shouldy contain pretty detailed instructions. Hope this helps, Adri. -- A.B. van Woerkom, adri@dutncp6.tudelft.nl Delft University of Technology, Faculty of Applied Physics, Physics Informatics Group, section Computational Physics, Lorentzweg 1, 2628 CJ DELFT, The Netherlands ________________________________________________________________________ "Unfortunately, the current generation of mail programs do not have checkers to see if the sender knows what he is talking about" (A.S. Tanenbaum)