KSPSlider
The KSPSlider
class allows you to connect to a ui_slider
in KSP.
import { KSPSlider } from kontakt
var slider = KSPSlider(id: "my_slider")
Constructors
constructor(id: String)
Connects to a ui_slider
in KSP with the given control ID.
Properties
automate: Bool (get/set)
Activate/Deactivate automation touch. Set this to true
when interacting with a control to write automation. Set it back to false
once the user interaction is finished.
connected: Bool (get)
Whether the control is connected. A control might not be connected if no corresponding control was found for the given id
.
custom_id: Int (get)
The value of $CONTROL_PAR_CUSTOM_ID
set on this control.
default_value: Int (get)
The value of $CONTROL_PAR_DEFAULT_VALUE
set on this control.
id: String (get)
The id is the name of the variable in KSP that corresponds to this control.
label: String (get)
The value of $CONTROL_PAR_LABEL
set on this control.
max: Int (get)
The maximum value.
min: Int (get)
The minimum value.
normalized_value: Float (get/set)
The value normalized using min & max.
value: Int (get/set)
The sliders's value.