02-25-2007, 12:51 PM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
Do you mean, that we don't want to allow users to have separate deadzones on Axis1(+) and Axis1(-)? I've been thinking about that, could there be cases where people want different deadzones/exponents/gains on different parts of the same axis? Maybe the best way to solve this would be to add a toggle to copy the settings to controls on the same axis, or adjacent controls (like if we're on steer left, copy the stuff to the steer right controls). This adds yet more complexity to the control editing process...
As for the real-time display of the input plus processing, rather than try to stuff all that in the Edit Controls menu, why don't we set up a separate menu called "Test Controls" where we can put one of the cars, show its wheels move with the steering, show the input graph, and maybe add some other cool things like moving steering wheel and gas pedals. This would let the user test all their controls, without starting a new game.
|
|
02-25-2007, 01:46 PM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
Quote:Do you mean, that we don't want to allow users to have separate deadzones on Axis1(+) and Axis1(-)?
No, I don't mean that -- I can imagine people could want different settings on gas and brake, for example.
Quote:Maybe the best way to solve this would be to add a toggle to copy the settings to ... adjacent controls (like if we're on steer left, copy the stuff to the steer right controls).
That's what I mean. I think that's a good solution if it's not too much trouble. That's the only control that I can think of that you would need to do that on, so it could be treated as a special case.
Quote:As for the real-time display of the input plus processing, rather than try to stuff all that in the Edit Controls menu, why don't we set up a separate menu called "Test Controls"
The reason I want it in the edit controls menu is because it's not immediately obvious how the different positions on the slider will influence your control. As an example: my joystick doesn't do a perfect job of centering the driving axis (it will bounce around a bit) and that causes problems, obviously, when driving. To fix this, I use the deadzone. Deadzone isn't a desirable thing, though, so I only want to add as much as needed. Having at least the processed control's output graphed on the edit controls screen is that way I can drag the deadzone slider to the right until I see the twitching go away.
Also, having the output on the edit controls screen gives you real time feedback on your other adjustments like exponent. It would suck to have to try a value, click around in the GUI for a while, try it out, click around in the GUI for a while, try another value, etc.
|
|
02-27-2007, 05:38 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
I haven't got any kind of copy settings to adjacent controls thing yet, but the settings changed in the edit controls menu should now be saved properly, in SVN r1564. So far, the edit controls menus let you edit the following for different types of controls: - type: Joy Axis - deadzone, gain, exponent
- type: Joy Button, Mouse Button, Key - up/down and held/once
- type: Mouse Motion - deadzone, gain, exponent
I'm not quite sure if the Mouse Motion settings will have any effect in-game. Actually deadzone and exponent don't make sense on a mouse. I'll have to fix that...
Please test this out for me and give me some ideas on how to make this a little better.
Some thoughts/problems: - sliders only set a value between 0.0 and 1.0. The min and max values for deadzone, gain and exponent should all be different from that. I'll have to figure out some kind of solution...
- The slider should probably display the value that it's being set to in percentage, but the value wouldn't make much sense without having min/max values.
- The mouse-over icon for controls in the controlgrab widget has an X over it, which doesn't make much sense anymore since the action is edit, not delete. I'll make a new icon soon, for now it doesn't change when selected.
- There should be some way to copy settings to adjacent controls as Joe has said.
- It'd be nice to visualize the values as Joe has mentioned, I can probably adapt some code from the joystick calibration widget and make a new widget that does this.
I'm sort of leaning towards putting off fixing the last two points until the next release cycle. They would both probably take a good bit of extra time, and if I get the other stuff finished up, we could do a release very soon...
|
|
03-01-2007, 12:56 AM,
|
|
thelusiv
Administrator
|
Posts: 2,346
Threads: 223
Joined: Jun 2005
|
|
The controls file reflects correctly what I set in the gui, the problem persists after a restart. Playing around with it a little more, I see that if the exponent value is 3, everything is fine. However if I set both steer_left or steer_right to 2.2, 2.4, 2.6 or probably any value in between, steer_right works correctly, while steer_left works backwards (when I steer left, it steers right instead). I tested this by setting the values manually in the controls file, to be sure, and still got this problem.
|
|
|