mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 14:54:45 +08:00
Improved XInput controls
This commit is contained in:
+3
-4
@@ -80,9 +80,8 @@ namespace CodeWalker
|
||||
|
||||
|
||||
|
||||
public void Update(float elapsed)
|
||||
public void Update()
|
||||
{
|
||||
if (elapsed > 0.1f) elapsed = 0.1f;
|
||||
|
||||
var s = Settings.Default;
|
||||
|
||||
@@ -103,8 +102,8 @@ namespace CodeWalker
|
||||
xbry = xbmainaxes.W;
|
||||
xblt = xbtrigs.X;
|
||||
xbrt = xbtrigs.Y;
|
||||
float lamt = s.XInputLThumbSensitivity * elapsed;
|
||||
float ramt = s.XInputRThumbSensitivity * elapsed;
|
||||
float lamt = s.XInputLThumbSensitivity;
|
||||
float ramt = s.XInputRThumbSensitivity;
|
||||
xbly = s.XInputLThumbInvert ? xbly : -xbly;
|
||||
xbry = s.XInputRThumbInvert ? xbry : -xbry;
|
||||
xblx *= lamt;
|
||||
|
||||
Reference in New Issue
Block a user