Unbind crosshair from mousescrollbutton
Moderator: Moderators
Re: Unbind crosshair from mousescrollbutton
No its not just you, its real bug. Even if you always return true from lua, sometimes it just switches crosshair.
Its extremely annoying. I dont even understand what is crosshair for, much less why its bound in such hardcoded way.
Its extremely annoying. I dont even understand what is crosshair for, much less why its bound in such hardcoded way.
Re: Unbind crosshair from mousescrollbutton
Who in the world has the power to fix this annoying old bug that impairs gameplay of my all the time favourite RTS (*A) ?
I pay 2Ôé¼ via paypal for solution to fix this problem
Thanx.
I pay 2Ôé¼ via paypal for solution to fix this problem
Thanx.
Re: Unbind crosshair from mousescrollbutton
My frustration with unintentionally triggering the crosshair is that the thing is barely visible when you do that. I suggest making the crosshair more noticeable so a quicker recovery from unintentionally trigger it will be possible! Perhaps making it only kick in when the button is held rather than toggling when it's clicked, that should eliminate the whole issue of getting stuck in that mode unexpectedly.
Re: Unbind crosshair from mousescrollbutton
Did anybody actually *like* this feature?
Re: Unbind crosshair from mousescrollbutton
Yes, I do. Though I find it most useful when spectating, it's a nice thing to have around.
Re: Unbind crosshair from mousescrollbutton
MiddleClick scrolling is THE default way of scrolling in any application.
If you got problems in Spring with it, then you got a problem in ANY application (texteditors, browsers, ...).
If you got problems in Spring with it, then you got a problem in ANY application (texteditors, browsers, ...).
Re: Unbind crosshair from mousescrollbutton
I've always been more of a "hold middle mouse button" guy than a "click to toggle mousescroll" guy personally.jK wrote:MiddleClick scrolling is THE default way of scrolling in any application.
If you got problems in Spring with it, then you got a problem in ANY application (texteditors, browsers, ...).
-
SirMaverick
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Unbind crosshair from mousescrollbutton
@ kremmy
Atm you can only change the size. Either by changing "CrossSize" in your springsettings.cfg or in game with e.g. "/cross 10".
Atm you can only change the size. Either by changing "CrossSize" in your springsettings.cfg or in game with e.g. "/cross 10".
Yes.Pxtl wrote:Did anybody actually *like* this feature?
Re: Unbind crosshair from mousescrollbutton
Either way, at the very least it would be nice to see the more conventional icon for this:
Re: Unbind crosshair from mousescrollbutton
I use press middle button for scroll most of the time. I also sometimes scroll around with zoom out - zoom in on target.Pxtl wrote:Did anybody actually *like* this feature?
What do you use to scroll? Keys?
Re: Unbind crosshair from mousescrollbutton
We are talking about toggle which switches scrolling to toggle mode, not press and hold to scroll or toggle scroll itself!
Ctrl + middle mouse changes mode to toggle.
And you cannot turn this mis-feature off, nobody uses it and it makes newbies stuck, because switch it confuses lua widgets.
FFS how can anyone argue to keep this crazy thing.
Ctrl + middle mouse changes mode to toggle.
And you cannot turn this mis-feature off, nobody uses it and it makes newbies stuck, because switch it confuses lua widgets.
FFS how can anyone argue to keep this crazy thing.
Re: Unbind crosshair from mousescrollbutton
Not that I've activated the feature in a long time, but isn't it a naked middle-click to toggle the scroll-crosshairs (as well as the more popular hold-middlemouse)? Ctrl-middleclick was the "change camera modes" command before they were properly relocated to the function keys.Licho wrote:We are talking about toggle which switches scrolling to toggle mode, not press and hold to scroll or toggle scroll itself!
Ctrl + middle mouse changes mode to toggle.
And you cannot turn this mis-feature off, nobody uses it and it makes newbies stuck, because switch it confuses lua widgets.
FFS how can anyone argue to keep this crazy thing.
Either way, it would at least be less confusing with the icon I posted above - the same scroll icon all other apps use, so it would be obvious to the user "oh, this is the middle-click toggle-scroll mode".
Re: Unbind crosshair from mousescrollbutton
I have used nothing else but this to scroll since I started playing spring. It's essential for window mode play.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Unbind crosshair from mousescrollbutton
Not needed if you use a camera widget like the one I made.Regret wrote:essential
-
SirMaverick
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: Unbind crosshair from mousescrollbutton
What is this "toggle mode"? Never saw it. Only "press and hold to scroll or toggle scroll".Licho wrote:We are talking about toggle which switches scrolling to toggle mode, not press and hold to scroll or toggle scroll itself!
Ctrl + middle mouse changes mode to toggle.
And you cannot turn this mis-feature off, nobody uses it and it makes newbies stuck, because switch it confuses lua widgets.
ctrl+middle mouse is same as middle mouse for me.
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: Unbind crosshair from mousescrollbutton
I hate myself when mid click acts like a switch instead of a button, the guilty code is at mousehandler.cpp:313:void CMouseHandler::MouseRelease(int x, int y, int button)
the code responsible for widgets fucking up on crosshair enable:
the funny part is that the ta overhead camera ALREADY has button-like behaviour thanks to this code (it gets only executed only while mid mouse button is being held down):
so there is BOTH switch behaviour when you mid click & not move the mouse and button behaviour when you click and drag, but it's only the switch behaviour which fucks up lua code
solution: remove the first block of code, and make a widget to reimplement back switch functionality for those who want it ( locking code should be kept in since it's reused for other stuff such as fps cam )
also, for the record, 99% of the apps uses button-like behaviour for mid click scrolling, not switch
Code: Select all
// Switch camera mode on a middle click that wasn't a middle mouse drag scroll.
// (the latter is determined by the time the mouse was held down:
// <= 0.3 s means a camera mode switch, > 0.3 s means a drag scroll)
if (button == SDL_BUTTON_MIDDLE) {
if (buttons[SDL_BUTTON_MIDDLE].time > (gu->gameTime - 0.3f))
ToggleState();
return;
}
Code: Select all
void CMouseHandler::ToggleState()
{
if (locked) {
locked = false;
ShowMouse();
} else {
locked = true;
HideMouse();
}
}
Code: Select all
// limited receivers for MMB
if (button == SDL_BUTTON_MIDDLE){
if (!locked) {
if (luaInputReceiver != NULL) {
if (luaInputReceiver->MousePress(x, y, button)) {
activeReceiver = luaInputReceiver;
return;
}
}
if ((minimap != NULL) && minimap->FullProxy()) {
if (minimap->MousePress(x, y, button)) {
activeReceiver = minimap;
return;
}
}
}
return;
}Code: Select all
void COverheadController::MouseMove(float3 move)
{
if (flipped) {
move.x = -move.x;
move.y = -move.y;
}
move *= 100 * middleClickScrollSpeed;
float pixelsize = camera->GetTanHalfFov() * 2/globalRendering->viewSizeY * height * 2;
pos.x += move.x * pixelsize * (1+keys[SDLK_LSHIFT]*3) * scrollSpeed;
pos.z += move.y * pixelsize * (1+keys[SDLK_LSHIFT]*3) * scrollSpeed;
}
solution: remove the first block of code, and make a widget to reimplement back switch functionality for those who want it ( locking code should be kept in since it's reused for other stuff such as fps cam )
also, for the record, 99% of the apps uses button-like behaviour for mid click scrolling, not switch
Re: Unbind crosshair from mousescrollbutton
I really don't follow these app-based claims, click does nothing for me in anything that isn't a browser, and drag works in even less.
Re: Unbind crosshair from mousescrollbutton
Notepad, Wordpad, TASClient, SpringLobby, IE, Opera, FireFox, ...lurker wrote:I really don't follow these app-based claims, click does nothing for me in anything that isn't a browser, and drag works in even less.
Re: Unbind crosshair from mousescrollbutton
+1Regret wrote:I have used nothing else but this to scroll since I started playing spring. It's essential for window mode play.
Just tested in master and indeed only way I usually scroll is gone.
Also middleclick drag scroll seems reversed and arbitrary now, but that's probably off-topic.
Re: Unbind crosshair from mousescrollbutton
Notepad, wordpad, nope, and I don't have any mouse drivers you were blaming in irc. I already said it worked in web browsers (but differently in each, clearly not a system feature). Springlobby also has its own scrollydoo.
Can you give me a screenshot of what your scroll cursor looks like?
Can you give me a screenshot of what your scroll cursor looks like?
