Page 1 of 4

Unbind crosshair from mousescrollbutton

Posted: 03 Oct 2009, 21:36
by NOiZE
Hi,

How do i unbind crosshair from mousescrollbutton??

Re: Unbind crosshair from mousescrollbutton

Posted: 03 Oct 2009, 22:55
by ginekolog
I wonder the same.. found no good solution yet but some half working smooth scroll widget that replaces crosshair with smooth scrool.

unbind mouse3 would rox though...

Re: Unbind crosshair from mousescrollbutton

Posted: 11 Feb 2010, 13:09
by ginekolog
Is this possible now in new version of spring?

Even when i use smoothscroll widget (only to prevent STUPUD crosshari scroll) it somtimes activates and fecks me up hard :roll:

I like built in middle scroll function but this crosshair messes it up if i do quick middle click.

Solution?

Re: Unbind crosshair from mousescrollbutton

Posted: 11 Feb 2010, 13:14
by Gota
Aegis was working on something to enable rebinding mouse keys...

Re: Unbind crosshair from mousescrollbutton

Posted: 11 Feb 2010, 13:19
by Regret
NOiZE wrote:How do i unbind crosshair from mousescrollbutton??
ginekolog wrote:I like built in middle scroll function but this crosshair messes it up if i do quick middle click.

Solution?
Not possible in current spring release.

Re: Unbind crosshair from mousescrollbutton

Posted: 12 Feb 2010, 23:17
by ginekolog
I really really hope someone fixes this mess .

Thanx.

Re: Unbind crosshair from mousescrollbutton

Posted: 12 Feb 2010, 23:23
by hoijui
i'd be fixing so much stufff really, if they'd just finally hand out the virgins harem to me, which i got promised!!!

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:34
by aegis
I have a lua-based solution but it requires that all mouse UI elements be coded in lua...

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:42
by Regret
aegis wrote:I have a lua-based solution but it requires that all mouse UI elements be coded in lua...
Bull, yours suffers from the "midclick while mousewheel" bug too. :regret:

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:43
by aegis
it's a solution to being unable to rebind mouse keys, not to the bug related to middle clicking while scrolling...

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:46
by Auswaschbar
Seriously, whats wrong with you guys?

Code: Select all

function widget:GetInfo()
   return {
      name      = "Unbind MMButton",
      desc      = "^^^^^^^^^^^",
      author    = "Auswaschbar",
      version   = "v1.0",
      date      = "Feb, 2010",
      license   = "GNU GPL, v3 or later",
      layer     = 9000,
      enabled   = true,
   }
end
   
function widget:MousePress(mx, my, button)
   local alt,ctrl,meta,shift = Spring.GetModKeyState()
   -- Spring.Echo("Button pressed: " .. button)
   if (button == 2) then -- middle button
      -- Spring.SetActiveCommand("selfd")
      -- Spring.SendCommands("drawlabel")
      return true
   end
   return false
end 
Widget that disables crosshair when middle click, can be easily modified to do whatever you want, and use whatever additional buttons your mouse have. And works with current spring, in every mod, and with non-lua UI.

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:48
by aegis
Auswaschbar wrote:Seriously, whats wrong with you guys?
aegis wrote:it's a solution to being unable to rebind mouse keys, not to the bug related to middle clicking while scrolling...
when you middle click while scrolling the mouse wheel, it bypasses lua, making all such scripts ineffective.

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 00:57
by aegis
other than the middle click bug, the problem with simply rebinding your mouse button to a random action lies in the fact it breaks standard interactions - you won't be able to use most of the user interface if you rebind all of your mouse buttons this way.

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 10:01
by ginekolog
Auswaschbar wrote:Seriously, whats wrong with you guys?
Widget that disables crosshair when middle click, can be easily modified to do whatever you want, and use whatever additional buttons your mouse have. And works with current spring, in every mod, and with non-lua UI.
This does not work well as others said, try middleclick + scrollwhell (which happen to me in game loads of times) and you WILL get ugly, useless crosshair scroll. :( :|

All i want is to be alble to disable crosshair scroll.. as default middle scroll works fantastic.

ATM i mostly scroll by middle click on minimap and move map around (or by going to the edge of screen ofc). How do you scroll?

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 12:54
by Auswaschbar
ginekolog wrote:ATM i mostly scroll by middle click on minimap and move map around (or by going to the edge of screen ofc). How do you scroll?
Middle mouse on minimap, or arrow keys. When I'm lazy I zoom out, and zoom in somewhere else.

I don't know how you guys punch your wheel, but as far as I remember I never accidentally pushed middle mouse button while spinning the wheel.

Re: Unbind crosshair from mousescrollbutton

Posted: 13 Feb 2010, 12:59
by imbaczek
i've done this more times than i can count, and i don't play that much.

Re: Unbind crosshair from mousescrollbutton

Posted: 23 Feb 2010, 00:08
by ginekolog
As i can see this bug is still not fixed in 81.2?

Preety please someone make a way to disable crosshair scroll.... :|

The one who fixes this will be true hero to me and i wont kill him first in FFA games :mrgreen:

Re: Unbind crosshair from mousescrollbutton

Posted: 23 Feb 2010, 17:53
by CarRepairer
Auswaschbar wrote:
ginekolog wrote:ATM i mostly scroll by middle click on minimap and move map around (or by going to the edge of screen ofc). How do you scroll?
Middle mouse on minimap, or arrow keys. When I'm lazy I zoom out, and zoom in somewhere else.

I don't know how you guys punch your wheel, but as far as I remember I never accidentally pushed middle mouse button while spinning the wheel.
I use the Complete Control Camera!

I've noticed this strange midclick+wheel bug though.

Re: Unbind crosshair from mousescrollbutton

Posted: 08 Mar 2010, 14:52
by ginekolog
Auswaschbar, can this be fixed?

Re: Unbind crosshair from mousescrollbutton

Posted: 22 Mar 2010, 23:23
by ginekolog
i get stuck with unitended crosshair ui every game even with having active smooth scroll (i have it just to get crosshair less often).. is it just me?