.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::UI Input Control ============= .. class:: InputControl The base class of dropdowns, input fields, sliders and toggles, which hold a value the user can change. | Base class: :class:`Control` | Derived classes: :class:`Dropdown`, :class:`InputField`, :class:`Slider`, :class:`Toggle` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`Control`: :func:`interactable `, :func:`set_interactable `, :func:`color `, :func:`set_color `, :func:`tooltip `, :func:`set_tooltip ` * From :class:`Object`: :func:`rect_transform `, :func:`layout_element `, :func:`visible `, :func:`set_visible `, :func:`remove ` .. function:: bool changed() .. function:: void set_changed(bool value) Whether the user has changed the control's value. .. note:: This property is set to true when the user changes the value, and not when a client sets it. A client script should reset the property to false in order to detect subsequent changes.