11name : InputBinding
22type : class
33memory_category : Instances
4- summary : ' '
5- description : ' '
4+ summary : |
5+ Defines which hardware binding should trigger the parent `Class.InputAction`.
6+ description : |
7+ An `InputBinding` defines which hardware binding should trigger the parent
8+ `Class.InputAction`, for example a key press, gamepad button, or tap on a
9+ touch‑enabled device. There can be multiple `InputBinding` instances parented
10+ to an `Class.InputAction`.
611code_samples : []
712inherits :
813 - Instance
1116deprecation_message : ' '
1217properties :
1318 - name : InputBinding.Down
14- summary : ' '
15- description : ' '
19+ summary : |
20+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "down"
21+ inputs to the parent `Class.InputAction`.
22+ description : |
23+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "down"
24+ inputs to `Class.InputAction:GetState()|GetState()` and the
25+ `Class.InputAction.StateChanged|StateChanged` event of the parent
26+ `Class.InputAction`. When the parent action's
27+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction1D`, the
28+ dispatched value will be between `0` and `-1`. When the parent action's
29+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction2D`, the
30+ dispatched value will be a `Datatype.Vector2` between `(0, 0)` and `(0,
31+ -1)`.
1632 code_samples : []
1733 type : KeyCode
1834 tags : []
@@ -28,8 +44,18 @@ properties:
2844 capabilities : []
2945 writeCapabilities : []
3046 - name : InputBinding.KeyCode
31- summary : ' '
32- description : ' '
47+ summary : |
48+ Specifies the `Enum.KeyCode` which triggers the parent
49+ `Class.InputAction`.
50+ description : |
51+ Specifies the `Enum.KeyCode` which triggers the parent
52+ `Class.InputAction`. The code type should match the input action's
53+ `Class.InputAction.Type|Type`, for example `Enum.KeyCode.E` for an action
54+ type of `Enum.InputActionType|Bool` or `Enum.KeyCode.Thumbstick1` for an
55+ action type of `Enum.InputActionType|Direction2D`. Type mismatches will
56+ either not fire the `Class.InputAction` or the
57+ `Class.InputAction.StateChanged|StateChanged` event will receive a
58+ converted value.
3359 code_samples : []
3460 type : KeyCode
3561 tags : []
@@ -45,8 +71,17 @@ properties:
4571 capabilities : []
4672 writeCapabilities : []
4773 - name : InputBinding.Left
48- summary : ' '
49- description : ' '
74+ summary : |
75+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "left"
76+ inputs to the parent `Class.InputAction`.
77+ description : |
78+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "left"
79+ inputs to `Class.InputAction:GetState()|GetState()` and the
80+ `Class.InputAction.StateChanged|StateChanged` event of the parent
81+ `Class.InputAction`. Only applies when the parent action's
82+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction2D`, in
83+ which case the dispatched value will be a `Datatype.Vector2` between `(0,
84+ 0)` and `(-1, 0)`.
5085 code_samples : []
5186 type : KeyCode
5287 tags : []
@@ -62,8 +97,18 @@ properties:
6297 capabilities : []
6398 writeCapabilities : []
6499 - name : InputBinding.PressedThreshold
65- summary : ' '
66- description : ' '
100+ summary : |
101+ Numerical value above which to fire an `Class.InputAction` with a
102+ `Class.InputAction.Type|Type` of `Enum.InputActionType|Bool`.
103+ description : |
104+ Numerical value above which to fire an `Class.InputAction` with a
105+ `Class.InputAction.Type|Type` of `Enum.InputActionType|Bool`, for
106+ example when a gamepad trigger such as `Enum.KeyCode.ButtonL2` exceeds
107+ `0.5` (halfway pressed). Default is `0.5`.
108+
109+ This property must be greater than or equal to
110+ `Class.InputBinding.ReleasedThreshold|ReleasedThreshold` or else it will
111+ be clamped to `Class.InputBinding.ReleasedThreshold|ReleasedThreshold`.
67112 code_samples : []
68113 type : float
69114 tags : []
@@ -79,8 +124,18 @@ properties:
79124 capabilities : []
80125 writeCapabilities : []
81126 - name : InputBinding.ReleasedThreshold
82- summary : ' '
83- description : ' '
127+ summary : |
128+ Numerical value below which to fire an `Class.InputAction` with a
129+ `Class.InputAction.Type|Type` of `Enum.InputActionType|Bool`.
130+ description : |
131+ Numerical value below which to fire an `Class.InputAction` with a
132+ `Class.InputAction.Type|Type` of `Enum.InputActionType|Bool`, for
133+ example when a gamepad trigger such as `Enum.KeyCode.ButtonL2` falls below
134+ `0.5` (less than halfway pressed). Default is `0.2`.
135+
136+ This property must be less than or equal to
137+ `Class.InputBinding.PressedThreshold|PressedThreshold` or else it will be
138+ clamped to `Class.InputBinding.PressedThreshold|PressedThreshold`.
84139 code_samples : []
85140 type : float
86141 tags : []
@@ -96,8 +151,17 @@ properties:
96151 capabilities : []
97152 writeCapabilities : []
98153 - name : InputBinding.Right
99- summary : ' '
100- description : ' '
154+ summary : |
155+ Specifies an alternate `Enum.KeyCode` for dispatching directionally
156+ "right" inputs to the parent `Class.InputAction`.
157+ description : |
158+ Specifies an alternate `Enum.KeyCode` for dispatching directionally
159+ "right" inputs to `Class.InputAction:GetState()|GetState()` and the
160+ `Class.InputAction.StateChanged|StateChanged` event of the parent
161+ `Class.InputAction`. Only applies when the parent action's
162+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction2D`, in
163+ which case the dispatched value will be a `Datatype.Vector2` between `(0,
164+ 0)` and `(1, 0)`.
101165 code_samples : []
102166 type : KeyCode
103167 tags : []
@@ -113,8 +177,13 @@ properties:
113177 capabilities : []
114178 writeCapabilities : []
115179 - name : InputBinding.Scale
116- summary : ' '
117- description : ' '
180+ summary : |
181+ Amount by which to linearly scale the values of a directional
182+ `Class.InputAction`.
183+ description : |
184+ Amount by which to linearly scale the values of an `Class.InputAction`
185+ with `Class.InputAction.Type|Type` of `Enum.InputActionType|Direction1D`
186+ or `Enum.InputActionType|Direction2D`.
118187 code_samples : []
119188 type : float
120189 tags : []
@@ -130,8 +199,10 @@ properties:
130199 capabilities : []
131200 writeCapabilities : []
132201 - name : InputBinding.UIButton
133- summary : ' '
134- description : ' '
202+ summary : |
203+ Connects a `Class.GuiButton` to a boolean action.
204+ description : |
205+ `Class.GuiButton` to connect to a boolean action.
135206 code_samples : []
136207 type : GuiButton
137208 tags : []
@@ -147,8 +218,19 @@ properties:
147218 capabilities : []
148219 writeCapabilities : []
149220 - name : InputBinding.Up
150- summary : ' '
151- description : ' '
221+ summary : |
222+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "up"
223+ inputs to the parent `Class.InputAction`.
224+ description : |
225+ Specifies an alternate `Enum.KeyCode` for dispatching directionally "up"
226+ inputs to `Class.InputAction:GetState()|GetState()` and the
227+ `Class.InputAction.StateChanged|StateChanged` event of the parent
228+ `Class.InputAction`. When the parent action's
229+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction1D`, the
230+ dispatched value will be between `0` and `1`. When the parent action's
231+ `Class.InputAction.Type|Type` is `Enum.InputActionType|Direction2D`, the
232+ dispatched value will be a `Datatype.Vector2` between `(0, 0)` and `(0,
233+ 1)`.
152234 code_samples : []
153235 type : KeyCode
154236 tags : []
@@ -164,8 +246,12 @@ properties:
164246 capabilities : []
165247 writeCapabilities : []
166248 - name : InputBinding.Vector2Scale
167- summary : ' '
168- description : ' '
249+ summary : |
250+ Amount by which to linearly scale the values of a two-directional
251+ `Class.InputAction`.
252+ description : |
253+ Amount by which to linearly scale the values of an `Class.InputAction`
254+ with `Class.InputAction.Type|Type` of `Enum.InputActionType|Direction2D`.
169255 code_samples : []
170256 type : Vector2
171257 tags : []
0 commit comments