Find the answer to your Linux question:
Results 1 to 2 of 2
I'm going to order a Mighty Mouse keyboard from Unicomp this paycheck, but I'm torn between the versions with and without the stick. http://www.enrol.us/unicomp_mighty_m...ard_review.htm http://store.yahoo.com/pckeyboards/keyboards.html I don't want to use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Jan 2005
    Location
    Arizona
    Posts
    288

    solved: xorg.conf: map mouse's Y to Z


    I'm going to order a Mighty Mouse keyboard from Unicomp this paycheck, but I'm torn between the versions with and without the stick.
    http://www.enrol.us/unicomp_mighty_m...ard_review.htm
    http://store.yahoo.com/pckeyboards/keyboards.html

    I don't want to use the stick as a mouse. I've been using the Ion2 window manager, which is keyboard driven, and so I'd really like to use Firefox in caret mode. Unfortunately it can't scroll a line at time in this mode, so I don't use it this way. However, I imagine if I could find a way to map the Y axis of the keyboard's stick to the Z axis, so that it functions as a scroll wheel, I could use caret mode. Of course it would come in handy in a ton of other situations, too.

    So, does anyone know if this is possible? I've done a little digging, but haven't found anything yet.

    Thanks
    Michael Salivar

    Man knows himself insofar as he knows the world, becoming aware of it only in himself, and of himself only within it.
    --Goethe

  2. #2
    Linux User
    Join Date
    Jan 2005
    Location
    Arizona
    Posts
    288
    Ah, I was looking at xmodmap and imwheel (which may or may not have a solution, I'm not sure from the docs), but apparently there's a rather undocumented feature in X that will do what I need. With only a two button mouse I'll need to go without one of the two major buttons, but that's ok, it's only a keyboard stick. I figure I'll use button one as the modifier, since context menus are more important than normal pointing in my scenario.

    Anyway, I found the doc here:
    http://www.linuxmanpages.com/man4/mouse.4x.php

    Here are the xorg.conf options (de-junkified):
    Option "EmulateWheel" "boolean"
    Enable/disable "wheel" emulation. Wheel emulation means emulating button press/release events when the mouse is moved while a specific real button is pressed. Wheel button events (typically buttons 4 and 5) are usually used for scrolling. Wheel emulation is useful for getting wheel-like behaviour with trackballs. It can also be useful for mice with 4 or more buttons but no wheel. See the description of the EmulateWheelButton, EmulateWheelInertia, XAxisMapping, and YAxisMapping options below. Default: off.
    Option "EmulateWheelButton" "integer"
    Specifies which button must be held down to enable wheel emulation mode. While this button is down, X and/or Y pointer movement will generate button press/release events as specified for the XAxisMapping and YAxisMapping settings. Default: 4.
    Option "EmulateWheelInertia" "integer"
    Specifies how far (in pixels) the pointer must move to generate button press/release events in wheel emulation mode. Default: 50.

    I think I'll pick up a Happy Hacking Lite 2 at the same time, maybe I'll write up a comparison.
    Heh, I just hope I don't fall in love with the HHK's layout, but hate it's action. Their pro model which has this glorified mechanical electric capacitance system (glorified, I suspect?) goes for $259...
    Michael Salivar

    Man knows himself insofar as he knows the world, becoming aware of it only in himself, and of himself only within it.
    --Goethe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •