Handling throttle, brakes, etc. with mouse scrollwheel?
#1
Posted 30 January 2024 - 03:02 AM
Did anyone thought about using the mouse wheel instead of the left button? Just move your mouse pointer above the handle and turn the mouse wheel in the correct direction. I have this working for the direction, which is easy, because it has only 3 values: forward, neutral and backwards. The two methods (left button/mouse wheel) could co-exist next to each other.
If there are fans of this mouse wheel usage, please let me know. Then I'll continue.
Siebren.
#2
Posted 30 January 2024 - 07:13 AM
Definitely yes.
The only thing (but, I hope, it can be defined through third value of the *.eng-file) - wheel's "sensitivity", in case of notchless controls.
#3
Posted 30 January 2024 - 07:29 AM
So it might be too difficult. I would not like to add a third value to the *.eng file.
#4
Posted 30 January 2024 - 07:47 AM
Quote
What was meant?
Quote
What namely?
Quote
But it does exist there since MSTS origin:
ThrottleLever ( 0 1 0,1 0
etc...
1-lowest value
2-highest value
3-"step's size"
4-initial value
#5
Posted 30 January 2024 - 08:58 AM
#6
Posted 23 February 2024 - 11:22 AM
Mouse wheel support to be found in unstable https://james-ross.c...%2016-13-14.zip or later.
So I'm not 100% satisfied. Programming this topic was more trial and error. If one of the developers can do it better, be my guest.
I've also added this:
Hidden behind Control F5. Gives the rectangles where the control surface is layout (seen in FlightGear). The key combination Control F5 is randomly taken by me. Please suggest another one which might be more logical. Or if a developer has already a particular purpose for this key.
#8
Posted 23 February 2024 - 03:15 PM
It feels like an exciting time for OpenRails - so much progress is being made on multiple fronts!
- Jack
#10
Posted 24 February 2024 - 11:51 AM
Weter, on 23 February 2024 - 12:19 PM, said:
*.cvf-file's control blocks have parameter DirIncrease() Could it be for this?
Is "MouseControlled() parameter just that "left button support", You're talking about?
So, we can now check the actual areas, where controls are being affected by cursor and adjust them to be more accurate?
In one of flight sims, control's area had two halves: + and - (sign was displayed by the pointer's arrow)
depending on where the pointer was placed, wheel's rotation increased or decreased control.
The DirIncrease suggestion did the trick. Good one and thanks. Fix in a new unstable.
The control area's: I first thought of the normal OR user. So that all the areas can be easily found. But of course if an engine builder could use it to see how the areas fit, that would also be nice.
Seen that too, the + and - sign on the controls. But that would be too difficult to implement for now. Scroll wheel implementation follows the current Left button Mouse click.
#11
Posted 24 February 2024 - 10:57 PM
Quote
Of course, there shouldn't be any "mystery", about why it works the other way with them.
But how about "mouse controlled"? Are all such controls affected by scrolling now?
I'm afraid, at the same time, that rectangular area matches with frame's size (graphic image of given control), so I doubt, it can be adjustable separately...
That's pity, as some areas would better being narrowed-down, for not to overlap and for cover the handle only.
At the same time, if not to use MSTS cab editor, there was no way to see them, so, Thank You!
Not bad anyway - appreciate Your work a lot.
#12
Posted 24 March 2024 - 10:29 AM
It's for 2d cabs, not for 3d cabs. The last one is too complicated for me. Besides that for 3d cabs the mouse scroll wheel is already in use for changing the view. I could have tried to make the scroll wheel act as a view change when mouse not pointing to a control. But as I said, too complicated. Besides that it looks like 3d cabs are rare.
If a certain control is acting funny on the mouse wheel, please let me know. I might be able to correct. Especially for steam engines, as I do not have that much experience with those.
And a reminder, ctrl-F5 gives yellow squares where the mouse wheel is active. And a certain square gets highlighted when the mouse wheel is active for that control (thanks Mauricio!).
#14
Posted 06 June 2024 - 05:15 AM
Does it depend on the CVF? from the eng section?
Thank you very much for this and in advance
#15
Posted 07 June 2024 - 01:33 AM
The CTRL-F5 displaying the yellow rectangles is still available as a separate Pull Request. Is still part of the unstable version of OR.
Siebren.

Log In
Register Now!
Help






