Results 1 to 10 of 80

Thread: How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

Threaded View

  1. #1
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    How-to Scrollwheel Effect on Logitech trackball (Marble Mouse)

    End Result
    Using trackball to emulate wheel button scroll (horizontal & vertical) in web browser (Epiphany 2.14.0 and Firefox 1.5.0.1).

    Method

    1. Open xorg.conf file using a text editor (gedit). Go to Applications -> Accessories -> Terminal and enter command:
      Code:
      sudo gedit /etc/X11/xorg.conf
    2. Look for a section that contains the entry for your mouse, it looks kind of like this.
      Code:
      Section "InputDevice"
      	Identifier	"Configured Mouse"
      	Driver		"mouse"
      	Option		"CorePointer"
      	Option		"Device"		"/dev/input/mice"
      	Option		"Protocol"		"ImPS/2"
      	Option		"ZAxisMapping"		"4 5"
      	Option		"Emulate3Buttons"	"true"
      EndSection
    3. Edit that section into this:
      Code:
      Section "InputDevice"
      	Identifier	"Configured Mouse"
      	Driver		"mouse"
      	Option		"CorePointer"
      	Option		"Device"		"/dev/input/mice"
      	Option		"Protocol"		"ExplorerPS/2"
      	Option		"Emulate3Buttons"	"true"
      	Option		"Buttons"		"9"
      	Option		"EmulateWheel"		"1"
      	Option		"EmulateWheelButton"	"8"	# for right-handed people
      	Option		"YAxisMapping"		"4 5" 
      	Option		"XAxisMapping"		"6 7" 
      EndSection
    4. For left-handed people. Use this:
      Code:
      Option		"EmulateWheelButton"	"9"	# for left-handed people
    5. Go to Epiphany / Firefox address bar and type:
      Code:
      about:config
    6. Filter for the word scroll and look for these lines:
      Code:
      mousewheel.horizscroll.withnokey.action		default		integer	2
      mousewheel.horizscroll.withnokey.sysnumlines	default		boelean	false
    7. Change the default value into new value:
      Code:
      mousewheel.horizscroll.withnokey.action		user set	integer	0
      mousewheel.horizscroll.withnokey.sysnumlines	user set	boelean	true


    Step

    References:

    a. Xorg user documentation
    Option "Buttons" "integer"
    Specifies the number of mouse buttons. In cases where the number of buttons cannot be auto-detected, the default value is 3. The maximum number is 24.

    Option "Emulate3Buttons" "boolean"
    Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously. Default: off

    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 "XAxisMapping" "N1 N2"
    Specifies which buttons are mapped to motion in the X direction in wheel emulation mode. Button number N1 is mapped to the negative X axis motion and button number N2 is mapped to the positive X axis motion. Default: no mapping.

    Option "YAxisMapping" "N1 N2"
    Specifies which buttons are mapped to motion in the Y direction in wheel emulation mode. Button number N1 is mapped to the negative Y axis motion and button number N2 is mapped to the positive Y axis motion. Default: "4 5".
    b. mozillaZine
    Mousewheel.*

    These fall into two groups, vertical and horizontal scroll. The general form is:
    • mousewheel.(modifier key).(type)
    • mousewheel.horizscroll.(modifier key).(type)


    Type is then one of:
    action
    integer value that determines the type of action:
    • 0 - Scroll document by a number of lines (given by the numlines property)
    • 1 - Scroll document by one page
    • 2 - Move back/forward in history
    • 3 - Make text larger/smaller


    numlines
    number of lines to scroll by (if relevant)

    sysnumlines
    use system preferences to determine how many lines to scroll by
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Buffalo Soldier; January 24th, 2008 at 02:27 PM.

Bookmarks

Posting Permissions

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