DiRT Rally
Zoom377 2015년 9월 27일 오후 2시 16분
2
Mouse Steering solution
EDIT 24/6/17: The download link was removed. Steam does not tolerate Mega links, so I am hosting the file on Google Drive now.


Hey, I've been noticing the number of people asking for mouse steering, and so for a programming exercise I have created this small program.

Program features
1. Steering using mouse raw input (via a virtual joystick)
2. Border-less windowed mode
3. Mouse hiding
4. On-screen steering marker
5. Mouse buttons bindable in-game (via virtual joystick buttons)

It is made using Auto Hotkey and requires you to have vJoy installed.

The program uses a virtual joystick and feeds values to it.
When you move the mouse left and right the X value of the joystick will be changed.
If push back is set higher than 0, it will be pushed towards neutral over time.

Demo video by db_mew:
https://www.youtube.com/watch?v=cOkS19LQGQM&hd=1


Installation:
Diagram here: http://imgur.com/bQuR9Xj
1. Download and install vJoy[vjoystick.sourceforge.net]
2. Download my program[drive.google.com]

The program can be placed anywhere. It will save settings to Documents\Mouse Steering.


How to use:
The first time you run the program it will offer you settings. These will be explained below:

Sensitivity: Simply scales the input from your mouse. Too much and fine steering will be difficult. Too little and it will not be possible to reach full steering lock.

Push back: This is how strong the steering will push towards the neutral position. When set to 0 the value of steering will be maintained.

Non-linearity: This makes the steering much looser near the neutral position. Too much and it will feel very loose in the centre, too little and it will be difficult to separate fine and large movements.


When the program is running, you will notice a new icon in your tray. Right click and then click settings to open up the settings window.


Pressing CTRL + F11 shows a marker on the screen which moves in relation to the joystick position.
To work around the difficulty of displaying on top of a fullscreen DX application, I have added the ability to toggle border-less window, which allows the marker to be seen.

Left and right mouse buttons control buttons 7 and 8 on the joystick, for those who wish to use mouse buttons in game.

In V1.6.1 I've changed it so joystick values go from 0 to 32767 (as it should be) you may have to recalibrate or just reset to default. (default happens to be 32767)


Other information and hotkeys:
Its AutoHotkey, why not throw in a ton of utilities?
CTRL + F7: Change marker color
CTRL + F8: Toggle hide mouse
CTRL + F9: Toggle borderless window
CTRL + F10: Set joystick to neutral
CTRL + F11: Enable joystick marker (Doesn't currently work in fullscreen DX games, hence the existence of F8 and F9 hotkeys)
CTRL + F12: Exit

I'm not aware of a program that does this however I only did a brief Google search.

This program relies on:
vJoy by Shaul[vjoystick.sourceforge.net]
evilC's CvJoyInterface[github.com]
Gdip by tic[www.autohotkey.com]
AHKHID by TheGood[www.autohotkey.com]
Borderless window code by Klaus2[www.autohotkey.com]


Source code[pastebin.com]
Zoom377 님이 마지막으로 수정; 2017년 6월 24일 오전 7시 13분
< >
77개 댓글 중 46-60개 표시
Toino 2018년 10월 18일 오후 3시 53분 
JellAy님이 먼저 게시:
Hey an does this work in DiRT 3 Complete Edition? Becuase I can only bind either left or right to the X-axis :(
I never tried it but i believe its possible to do it bind left mouse to forward and right mouse to backwards.
vatanperver 2019년 6월 10일 오전 10시 25분 
I've got a slight problem. I tried this in shift 2 unleashed and I can only steer to right, when I move my mouse to left nothing happens(works flawlessly in any other racing game I've tried) if anybody can help me out I'd really appreciate it
unsthuthn 2019년 6월 11일 오전 8시 23분 
Skyline Senpai님이 먼저 게시:
I've got a slight problem. I tried this in shift 2 unleashed and I can only steer to right, when I move my mouse to left nothing happens(works flawlessly in any other racing game I've tried) if anybody can help me out I'd really appreciate it
that's probably to do with bindings in game, even with a real wheel in a bunch of games its messy
76561198402179503 2019년 8월 31일 오전 9시 47분 
Possible solution if vjoy is not being detected by Dirt Rally:

Before starting Dirt Rally, you need to go to Steam -> Settings -> Controller settings and uncheck ALL boxes.

After this I could see "Direct Input device" in Dirt Rally (under Controls - Choose preset)

HOWEVER - maybe author needs to share proper configuration from Steam -> Settings -> Controller settings
musatem 2019년 8월 31일 오후 4시 57분 
...
squiggles 2019년 9월 19일 오후 6시 25분 
how do you even get it to work tho
Aware 2019년 9월 30일 오전 9시 55분 
Here is my solution. In my case I was able to see vjoy device( Direct Input Device) in options but not able to configure.
So here is full instruction that no one explained before.
1. İnstall Vjoy (that it, we don't open it or configure it, just install)
2.Download MouseSteering_V1.7.2, but dont open yet.
3.Open the game.
4.Enter a race.
5.Press ESC, go to OPTİONS>CONTROLS>Choose Preset>Choose Direct Input Device(joystick)
6. Now run the MouseSteering_V1.7.2. There is settings, we will look it later.
7.Open the game which is already running.
8.press CTRL + F11, you should see red bar on the bottom of your screen
9.In game options>control change steer left and steer right. enter it, while waiting use mouse steering. It should work
THAT İS İT FOR ME, WORKİNG
Now my configurations for game and MouseSteering_V1.7.2
MouseSteering_V1.7.2
-sensitivity = 14.0
-push-back = 0
-non-linearitiy = 1

Options>Controls>Advanced Gamepad Settings
Steering Sensivity = 100
Steering Linearity = 0
Steering Deadzone = 10
Steering Saturation = 60

edited(mouse setting update):

Newer Better Settings:
MouseSteering_V1.7.2
-sensitivity = 14.0
-push-back = 0.02 (I think it really improves the experience of mouse steering. Nox it is 100x times better)
-non-linearitiy = 1

Advanced Gamepad Settings
Steering Sensivity = 100
Steering Linearity = 0
Steering Deadzone = 0 (after push back, no need to deadzone anymore)
Steering Saturation = 80 (small fix)
Throttle Saturation = 125 (It is for RWD Cars. Otherwise ıt is not possible to drive or stabilize RWD cars with keyboard. It can be change to defaults settings while using FWD Cars.)

Aware 님이 마지막으로 수정; 2019년 10월 2일 오전 11시 53분
gasha 2020년 4월 23일 오전 2시 20분 
Hi, how can I assign mouseY for throttle and brake?
Aware 2020년 4월 24일 오전 4시 28분 
gasha님이 먼저 게시:
Hi, how can I assign mouseY for throttle and brake?
After handling mouse steering with mouse, the second adventure was throttle control with mouse for me as well. After some research I realized it is not the best solution. Instead I dont remember what programs I used as of writing this comment but I was able to solve throttle problem with keyboard again. "Q" key was 20% throttle, "W" was 55% throttle and "E" was 100%.
unsthuthn 2020년 4월 24일 오전 4시 44분 
exactly what i've done
Maluuu 2020년 7월 8일 오전 4시 22분 
Hey, is there a way to turn W and S buttons into axises so that acceleration and braking are not instantly 100%?
WolfeYankee 2020년 9월 12일 오후 2시 52분 
I know I'm late, but it doesn't work for me.
WolfeYankee 님이 마지막으로 수정; 2020년 9월 12일 오후 3시 00분
Karl Marx (ص) 2020년 11월 9일 오전 12시 14분 
Sorry for necro'ing this topic but anybody just went straight brain cancer mode with this tutorial?
leven 2020년 11월 27일 오후 12시 38분 
I guess microsoft broke this in some update? I cant get any game to detect anything from vJoy
sngg 2021년 3월 7일 오후 9시 22분 
i tried to do what aware said but could not get it working
< >
77개 댓글 중 46-60개 표시
페이지당 표시 개수: 1530 50