Rebinding mouse wheel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caseman
    Member
    • Oct 2006
    • 123

    #1

    Rebinding mouse wheel

    I did a bit of digging on the forums but didn't find anything so let me ask:

    Is there any way to rebind the mouse wheel to something other then the default? I usually don't play commander so if I could rebind map zooming to something like Z and X (when I'm an SL) for instance and then bind pistol to mouse up and rifle to mouse down that would such a better use of the wheel.

    I went looking through the .con file and cut out the wheel=axis_2 lines then remapped weapon 2 to mouse wheel down but it didn't change anything. The mosue wheel still scrolls through all the available weapons. Bleh.

    Anyone managed to pull this off?
  • caseman
    Member
    • Oct 2006
    • 123

    #2
    Re: Rebinding mouse wheel

    Ha. I figured it out.

    Comment

    • Karl

      #3
      Re: Rebinding mouse wheel

      How you do it man ?

      Comment

      • caseman
        Member
        • Oct 2006
        • 123

        #4
        Re: Rebinding mouse wheel

        Orginally I thought that these were the problem lines:

        ControlMap.addAxisToTriggerMapping c_GIMouseWheelUp -1 IDFMouse IDAxis_2 0
        ControlMap.addAxisToTriggerMapping -1 c_GIMouseWheelDown IDFMouse IDAxis_2 0

        But they aren't. They just define what mouse axis 2 really is. Way down at the bottom of the control file are these two lines:

        ControlMap.addAxisToTriggerMapping c_PINextItem -1 IDFMouse IDAxis_2 0
        ControlMap.addAxisToTriggerMapping -1 c_PIPrevItem IDFMouse IDAxis_2 0

        These are the bastards that not make it work. Hack out these two lines, then move back up to the top where weapon selection is and create these two lines (based on the two we just removed:

        ControlMap.addAxisToTriggerMapping c_PIWeaponSelect2 -1 IDFMouse IDAxis_2 0
        ControlMap.addAxisToTriggerMapping -1 c_PIWeaponSelect3 IDFMouse IDAxis_2 0

        This causes wheel up to draw your pistol and wheel down to draw your rifle (or mp5, ect). Problem is now when you go into sqaud leader mode you can't zoom in and out on the map. I haven't tested yet due to playing with my new key settings but it should be easily fixed by adding the two cut out lines back but switching the axis_2 section with another key(s).

        Comment

        Working...