Unbind crosshair from mousescrollbutton

Unbind crosshair from mousescrollbutton

Please use this forum to set up matches and discuss played games.

Moderator: Moderators

User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Unbind crosshair from mousescrollbutton

Post by NOiZE »

Hi,

How do i unbind crosshair from mousescrollbutton??
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post 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...
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post 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?
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Unbind crosshair from mousescrollbutton

Post by Gota »

Aegis was working on something to enable rebinding mouse keys...
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Unbind crosshair from mousescrollbutton

Post 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.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post by ginekolog »

I really really hope someone fixes this mess .

Thanx.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Unbind crosshair from mousescrollbutton

Post 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!!!
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unbind crosshair from mousescrollbutton

Post by aegis »

I have a lua-based solution but it requires that all mouse UI elements be coded in lua...
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Unbind crosshair from mousescrollbutton

Post 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:
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unbind crosshair from mousescrollbutton

Post by aegis »

it's a solution to being unable to rebind mouse keys, not to the bug related to middle clicking while scrolling...
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Unbind crosshair from mousescrollbutton

Post 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.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unbind crosshair from mousescrollbutton

Post 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.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Unbind crosshair from mousescrollbutton

Post 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.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post 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?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Unbind crosshair from mousescrollbutton

Post 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.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Unbind crosshair from mousescrollbutton

Post by imbaczek »

i've done this more times than i can count, and i don't play that much.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post 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:
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Unbind crosshair from mousescrollbutton

Post 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.
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post by ginekolog »

Auswaschbar, can this be fixed?
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Unbind crosshair from mousescrollbutton

Post 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?
Post Reply

Return to “Ingame Community”