Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check settings semantic #5

Open
github-actions bot opened this issue Aug 17, 2021 · 0 comments
Open

check settings semantic #5

github-actions bot opened this issue Aug 17, 2021 · 0 comments
Labels
branch: master JSM compat Compatibility issue with JoyShockMapper todo comment type: todo

Comments

@github-actions
Copy link

Line: 45

_now: Instant,
dt: Duration,
) {
// TODO: check settings semantic
let s = &settings.stick_settings;
let amp = stick.magnitude();
let amp_zones = (amp - s.deadzone) / (s.fullzone - s.deadzone);
if amp_zones >= 1. {
self.current_speed = (self.current_speed
+ s.aim_stick.acceleration_rate * dt.as_secs_f64())
.min(s.aim_stick.acceleration_cap);

@Yamakaky Yamakaky added the JSM compat Compatibility issue with JoyShockMapper label Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch: master JSM compat Compatibility issue with JoyShockMapper todo comment type: todo
Projects
None yet
Development

No branches or pull requests

1 participant