I'm back :)
@JHTrucker don't worry, you are a good teacher :) I'm sorry for rushing it a bit, here's the complete message to be added to your post if you like it
-------------------------
Steer your truck with Mouse Scroll Wheel or Surface Dial
Requirements
- external controller (will not be used for steering) or see the first line of code
Controls.sii file changes
Code: Select all
"device joy `di8.'{force analogue steering for Scroll Wheel and MS Dial only if you don't have a controller}'`"
"mix camzoomin `keyboard.pgup?0 | semantical.camzoomin?0`"
"mix camzoomout `keyboard.pgdn?0 | semantical.camzoomout?0`"
"mix lookpos7 `memory(mouse.button_middle?0, ! lookpos7)`"
"mix lookpos8 `max(min(memory(scrol_up + scrol_dwn, lookpos8 + ((scrol_up - scrol_dwn) * (2/A)*(480/B)*(1.0 + (4.0 * lookpos7)))), 0.5), -0.5)`"
"mix lookpos9 `max(min(memory(scrol_dwn + scrol_up, lookpos9 + ((scrol_dwn - scrol_up) * (2/A)*(480/B)*(1.0 + (4.0 * lookpos7)))), 0.5), -0.5)`"
"mix dsteerleft `keyboard.larrow?0 + lookpos8?0`"
"mix dsteerright `keyboard.rarrow?0 + lookpos9?0`"
set "A" as the number of ticks in a full rotation of your scroll wheel (for MS Dial it's 1800); set "B" as the in-game steering wheel animation degrees number
In-game settings
- input type = Keyboard + controller (Xbox360, ...) only if you have a controller, else see above
- controller subtype = wheel
- steering non-linearity = 0 (adjust to taste)
- steering sensitivity = 1.0 (adjust to taste, shouldn't affect scroll wheel steering)
How it works
- controller (existing or not) is used for scroll wheel to analogue steering conversion
- chasing camera zoom is replaced with PageUp and PageDown; you may need to unassing them if they were already assigned to something, or choose different buttons in config.sii for zooming
- lookpos7 is used to alternate between slow and fast steering; default button is mouse middle button, or set another button in config.sii
- because of event-based functions limitation, if you scroll really fast you may lose some steering ticks, so you'll have to toggle fast steering
- in slow mode, the in-game steering wheel should turn the same as your scroll wheel
- works with trackpad too, but "A" value needs to be experimented with
-------------------------
Hope it is fine this way, sorry if I made changes to what you suggested but I hope it is clear like this too. Else I'll make adjustments as needed
I won't be leaving this forum anytime soon :) I think this method might also be interesting for changing stuff on the fly (steering sensitivity etc, as you've already done) by multiplying the lookpos8/9 values by the variable you want. Of course feel free to do anything you want with it
Thanks for your suggestion about posting on the SCS forum, it's a shame they banned you. I guess that will be a problem, maybe I'll try contacting a moderator before posting any link
Thanks again for your help
