mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-05 23:46:04 +00:00
Prevent deadzone and bitrate from dropping below 1
This commit is contained in:
@@ -49,6 +49,12 @@ public class ControllerHandler {
|
||||
|
||||
public ControllerHandler(NvConnection conn, int deadzonePercentage) {
|
||||
this.conn = conn;
|
||||
|
||||
// 1% is the lowest possible deadzone we support
|
||||
if (deadzonePercentage <= 0) {
|
||||
deadzonePercentage = 1;
|
||||
}
|
||||
|
||||
this.stickDeadzone = (double)deadzonePercentage / 100.0;
|
||||
|
||||
// We want limelight-common to scale the axis values to match Xinput values
|
||||
|
||||
Reference in New Issue
Block a user