Easy Build facing & associated mouse/keys in BA 8.08
Moderator: Content Developer
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Easy Build facing & associated mouse/keys in BA 8.08
Easy facing isnt working anymore. I know, middle click, but still no function for me.
(split from http://springrts.com/phpbb/viewtopic.php?f=44&t=32936)
(split from http://springrts.com/phpbb/viewtopic.php?f=44&t=32936)
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: BA 8.08 Released!
Try adding
at http://imolarpg.dyndns.org/trac/balates ... =3505#L210. It will spam output at you. http://imolarpg.dyndns.org/trac/balates ... format=txt will give you the widget file to put into userland.
Then select a con, select a build order, hold left mouse to place, then hold also middle mouse and move the mouse around. This would (normally) result in the building in the build order rotating. It should output
Does that work?
Code: Select all
Spring.Echo(lmb,mmb,rmb,inDrag)
Then select a con, select a build order, hold left mouse to place, then hold also middle mouse and move the mouse around. This would (normally) result in the building in the build order rotating. It should output
Code: Select all
true,true,false,true
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: BA 8.08 Released!
It works when I press left button and middle button at the same time. But that is not the way it is meant to be, right?
But it gives the expected print out.
But it gives the expected print out.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: BA 8.08 Released!
That is what I meant to happen. What were you expecting? (A single click of the middle mouse to activate/de-activate maybe?)very bad soldier wrote:It works when I press left button and middle button at the same time. But that is not the way it is meant to be, right?
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: BA 8.08 Released!
Well, I was expecting the same behavior as before just with swapped meta and middle. I cant remember that I had to press middle and left at the same time before in any program ^^ It feels super weird.
But nevermind, I can just revert back to he old version. But its poor usability in my opinion.
But nevermind, I can just revert back to he old version. But its poor usability in my opinion.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: BA 8.08 Released!
I thought it was the best of bad options. Unfortunately there are no spare key modifers in the context and the only spare mouse button is the middle mouse so afaics it has to be that. It requires middle+left mouse together because just pressing middle mouse alone will interfere with the camera panning. So it could use middle mouse as an on/off switch (which I think is closer to what a direct meta/mmb swap would achieve), but then middle mouse has to be pressed twice and this seemed more awkward to me than a single press & hold.
(Since changing facing is not frequently needed and there are already keys to change build facing - although they are too far to reach on most keyboards with key modifers also pressed - I decided that Build Split should get the use of meta.)
For those who just want to know keys, I keep http://springrts.com/phpbb/viewtopic.php?f=44&t=30173 up to date.
(Since changing facing is not frequently needed and there are already keys to change build facing - although they are too far to reach on most keyboards with key modifers also pressed - I decided that Build Split should get the use of meta.)
For those who just want to know keys, I keep http://springrts.com/phpbb/viewtopic.php?f=44&t=30173 up to date.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: BA 8.08 Released!
Left+Middle is a no-go imo until I grow another hand.
Lots of keybindings are unusable on non-english keyboard layouts. At least on my german keyboard its quite bad. I am unable to find out how to rotate buildings with keys
Lots of keybindings are unusable on non-english keyboard layouts. At least on my german keyboard its quite bad. I am unable to find out how to rotate buildings with keys
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: BA 8.08 Released!
Did you try reading http://springrts.com/phpbb/viewtopic.php?f=44&t=30173 ? I am fairly sure your keyboard has an "o" key.I am unable to find out how to rotate buildings with keys
I don't have a German keyboard, if you can make a seperate thread explaining the issues with them that would be useful.
Do you have a better idea? (I don't.)Left+Middle is a no-go imo until I grow another hand.
Re: BA 8.08 Released!
You could use:very_bad_soldier wrote:I am unable to find out how to rotate buildings with keys
Code: Select all
bind numpad2 buildfacing south
bind numpad4 buildfacing west
bind numpad6 buildfacing east
bind numpad8 buildfacing north
I have configured this some years ago on my system and never had problems with it.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: BA 8.08 Released!
:D While it is true that even my keyboard has an "o"-key, none of them is working for me to rotate buildings. Tried "o" and "," and ".". "[" and "]" is Alt+8 and Alt+9 on a german keyboard.Silentwings wrote:Did you try reading http://springrts.com/phpbb/viewtopic.php?f=44&t=30173 ? I am fairly sure your keyboard has an "o" key.I am unable to find out how to rotate buildings with keys
Wouldnt it work to keep previous behavior and just change meta to middle? So when pressing middle the cursor gets locked and you can rotate to the desired direction. Then you stop pressing middle and move the building to the position and then click left?Do you have a better idea? (I don't.)
@qray:
Thanks, idea is good but I think I will just stick with previous easy facing.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Easy Build facing & associated mouse/keys in BA 8.08
No - the middle mouse (on its own) is already in use here as a lock/unlock for panning the camera.Wouldnt it work to keep previous behavior and just change meta to middle? So when pressing middle the cursor gets locked and you can rotate to the desired direction.
I think its a general principle that (due to sdl2 stuff which I haven't read into) Spring doesn't understand Alt+XXX as a stand-in for what it thinks are "normal" keys. This is why "q" is now bound to drawing and "o" is a fall back for rotating buildings.Alt+8 and Alt+9 on a german keyboard
Hmm, well it is set here http://imolarpg.dyndns.org/trac/balates ... s.lua#L137 and it works on all my machines (which are all laptops with some US/UK keyboard variants). I can only think of using /keydebug and so on to try and figure out whats stopping it working for you.While it is true that even my keyboard has an "o"-key, none of them is working for me to rotate buildings
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Easy Build facing & associated mouse/keys in BA 8.08
Oh, "o" comes from that widget? No wonder it doesnt work for me then since I had to deactivate that thing long ago for different reasons.
Besides just affecting shortcuts for buildings it also binds and unbinds several other hotkeys ignoring any existing configuration which is not very nice tbh. Also on a german keyboard "y" and "z" are interchanged so it does not go along well with that widget.
Since I always thought CTRL-C for selecting commander is too complicated I configured "q" to select commander.
Drawing is on TAB for me since '`' is a "Dead-Key" on german keyboards: http://en.wikipedia.org/wiki/Dead_key
So '`' is not usable with chatting afterwards but its fine to toggle map overview. So, basically I interchanged TAB and '`'.
Besides just affecting shortcuts for buildings it also binds and unbinds several other hotkeys ignoring any existing configuration which is not very nice tbh. Also on a german keyboard "y" and "z" are interchanged so it does not go along well with that widget.
Since I always thought CTRL-C for selecting commander is too complicated I configured "q" to select commander.
Drawing is on TAB for me since '`' is a "Dead-Key" on german keyboards: http://en.wikipedia.org/wiki/Dead_key
So '`' is not usable with chatting afterwards but its fine to toggle map overview. So, basically I interchanged TAB and '`'.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Easy Build facing & associated mouse/keys in BA 8.08
Unfortunately its not possible to detect keyboard layout within lua, and there are so many that I wouldn't be able to handle all cases anyway. We have to rely on sdl2 for this afaics. In practice this means BA doesn't use special keys whenever it can be avoided.
It might be worth trying to fix that y-z issue though, I suspect quite a few people are affected by that.
It would be very complicated for Building Hotkeys &suchlike to take care of all possible pre-defined keybinds, I think trying to do it would create more problems for me than it would solve. Instead I always assume that only the engines default keybinds are present, but I'm happy for people who want to go their own way on keybinds to deactive Building Hotkeys (and the other less important keybinds widgets listed on http://springrts.com/phpbb/viewtopic.php?f=44&t=30173, if necessary). Of course at that point I am not much help fixing issues with configs I've not set up.
Side note for the interested: In the same way, I always assume no user widgets are present, but I am happy for people to add and maintain their own, I just can't help much with debugging their issues.
It might be worth trying to fix that y-z issue though, I suspect quite a few people are affected by that.
It would be very complicated for Building Hotkeys &suchlike to take care of all possible pre-defined keybinds, I think trying to do it would create more problems for me than it would solve. Instead I always assume that only the engines default keybinds are present, but I'm happy for people who want to go their own way on keybinds to deactive Building Hotkeys (and the other less important keybinds widgets listed on http://springrts.com/phpbb/viewtopic.php?f=44&t=30173, if necessary). Of course at that point I am not much help fixing issues with configs I've not set up.
Side note for the interested: In the same way, I always assume no user widgets are present, but I am happy for people to add and maintain their own, I just can't help much with debugging their issues.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Easy Build facing & associated mouse/keys in BA 8.08
Yeah sure, I understand its hard to take all possible keyboards/hotkeys into account. Maybe its not the best approach to handle a hardcoded set of hotkeys in Lua while I dont have a better idea either.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Easy Build facing & associated mouse/keys in BA 8.08
The next BA version will contain a widget to do it: http://imolarpg.dyndns.org/trac/balatest/changeset/3626on a german keyboard "y" and "z" are interchanged
Re: BA 8.08 Released!
Also same in Finnish keyboard, but that is the reason why I always nowadays just attack south, lol :)very_bad_soldier wrote:Left+Middle is a no-go imo until I grow another hand.
Lots of keybindings are unusable on non-english keyboard layouts. At least on my german keyboard its quite bad. I am unable to find out how to rotate buildings with keys
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Easy Build facing & associated mouse/keys in BA 8.08
As long as your keyboard has an "o" key, you should be able to rotate buildings ([ ] , . are also bound to it but less reliable on non-QWERTY). See viewtopic.php?f=44&t=30173.
Are there any other keybinds that are problematic on AZERTY?
Are there any other keybinds that are problematic on AZERTY?