From 3544f2a804866ea248dceb95f3e13a30d1a84852 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 9 Jan 2024 19:48:01 -0500 Subject: [PATCH] input offset get/set functions in conductor --- source/funkin/Conductor.hx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/funkin/Conductor.hx b/source/funkin/Conductor.hx index 05c23108f..6113baf23 100644 --- a/source/funkin/Conductor.hx +++ b/source/funkin/Conductor.hx @@ -209,7 +209,17 @@ class Conductor /** * An offset set by the user to compensate for input lag. */ - public var inputOffset:Float = 0; + public var inputOffset(get, set):Float; + + function get_inputOffset():Float + { + return Save.get().options.inputOffset; + } + + function set_inputOffset(value:Float):Float + { + return Save.get().options.inputOffset = value; + } /** * The number of beats in a measure. May be fractional depending on the time signature.