| | 1 | | using DCL; |
| | 2 | | using System; |
| | 3 | | using UnityEngine; |
| | 4 | | using DCL.Configuration; |
| | 5 | | using System.Collections.Generic; |
| | 6 | |
|
| | 7 | | /// <summary> |
| | 8 | | /// Mapping for Trigger actions |
| | 9 | | /// </summary> |
| | 10 | | public enum DCLAction_Trigger |
| | 11 | | { |
| | 12 | | //Remember to explicitly assign the value to each entry so we minimize issues with serialization + conflicts |
| | 13 | | CameraChange = 100, |
| | 14 | | CursorUnlock = 101, |
| | 15 | |
|
| | 16 | | ToggleNavMap = 110, |
| | 17 | | ToggleFriends = 120, |
| | 18 | | CloseWindow = 121, |
| | 19 | | ToggleWorldChat = 122, |
| | 20 | | ToggleUIVisibility = 123, |
| | 21 | | ToggleControlsHud = 124, |
| | 22 | | ToggleSettings = 125, |
| | 23 | | ToggleStartMenu = 126, |
| | 24 | | ToggleVoiceChatRecording = 127, |
| | 25 | | ToggleAvatarEditorHud = 128, |
| | 26 | | ToggleQuestsPanelHud = 129, |
| | 27 | | ToggleAvatarNamesHud = 130, |
| | 28 | | TogglePlacesAndEventsHud = 131, |
| | 29 | | ToggleShortcut0 = 132, |
| | 30 | | ToggleShortcut1 = 133, |
| | 31 | | ToggleShortcut2 = 134, |
| | 32 | | ToggleShortcut3 = 135, |
| | 33 | | ToggleShortcut4 = 136, |
| | 34 | | ToggleShortcut5 = 137, |
| | 35 | | ToggleShortcut6 = 138, |
| | 36 | | ToggleShortcut7 = 139, |
| | 37 | | ToggleShortcut8 = 140, |
| | 38 | | ToggleShortcut9 = 141, |
| | 39 | | ToggleEmoteShortcut0 = 142, |
| | 40 | | ToggleEmoteShortcut1 = 143, |
| | 41 | | ToggleEmoteShortcut2 = 144, |
| | 42 | | ToggleEmoteShortcut3 = 145, |
| | 43 | | ToggleEmoteShortcut4 = 146, |
| | 44 | | ToggleEmoteShortcut5 = 147, |
| | 45 | | ToggleEmoteShortcut6 = 148, |
| | 46 | | ToggleEmoteShortcut7 = 149, |
| | 47 | | ToggleEmoteShortcut8 = 150, |
| | 48 | | ToggleEmoteShortcut9 = 151, |
| | 49 | | ChatPreviousInHistory = 152, |
| | 50 | | ChatNextInHistory = 153, |
| | 51 | |
|
| | 52 | | Expression_Wave = 201, |
| | 53 | | Expression_FistPump = 202, |
| | 54 | | Expression_Robot = 203, |
| | 55 | | Expression_RaiseHand = 204, |
| | 56 | | Expression_Clap = 205, |
| | 57 | | Expression_ThrowMoney = 206, |
| | 58 | | Expression_SendKiss = 207, |
| | 59 | | Expression_Dance = 208, |
| | 60 | | Expression_Hohoho = 209, |
| | 61 | | Expression_Snowfall = 210, |
| | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Mapping for hold actions |
| | 66 | | /// </summary> |
| | 67 | | public enum DCLAction_Hold |
| | 68 | | { |
| | 69 | | //Remember to explicitly assign the value to each entry so we minimize issues with serialization + conflicts |
| | 70 | | Sprint = 1, |
| | 71 | | Jump = 2, |
| | 72 | | ZoomIn = 3, |
| | 73 | | ZoomOut = 4, |
| | 74 | | FreeCameraMode = 101, |
| | 75 | | VoiceChatRecording = 102, |
| | 76 | | DefaultConfirmAction = 300, |
| | 77 | | DefaultCancelAction = 301, |
| | 78 | | OpenExpressions = 447 |
| | 79 | | } |
| | 80 | |
|
| | 81 | | /// <summary> |
| | 82 | | /// Mapping for measurable actions |
| | 83 | | /// </summary> |
| | 84 | | public enum DCLAction_Measurable |
| | 85 | | { |
| | 86 | | //Remember to explicitly assign the value to each entry so we minimize issues with serialization + conflicts |
| | 87 | | CharacterXAxis = 1, |
| | 88 | | CharacterYAxis = 2, |
| | 89 | | CameraXAxis = 3, |
| | 90 | | CameraYAxis = 4, |
| | 91 | | MouseWheel = 5 |
| | 92 | | } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Input Controller will map inputs(keys/mouse/axis) to DCL actions, check if they can be triggered (modifiers) and rai |
| | 96 | | /// </summary> |
| | 97 | | public class InputController : MonoBehaviour |
| | 98 | | { |
| 1 | 99 | | public static bool ENABLE_THIRD_PERSON_CAMERA = true; |
| | 100 | |
|
| | 101 | | [Header("General Input")] |
| | 102 | | public InputAction_Trigger[] triggerTimeActions; |
| | 103 | | public InputAction_Hold[] holdActions; |
| | 104 | | public InputAction_Measurable[] measurableActions; |
| | 105 | |
|
| 14965 | 106 | | bool renderingEnabled => CommonScriptableObjects.rendererState.Get(); |
| 44895 | 107 | | bool allUIHidden => CommonScriptableObjects.allUIHidden.Get(); |
| | 108 | |
|
| | 109 | | private void Update() |
| | 110 | | { |
| 14965 | 111 | | if (!renderingEnabled) |
| | 112 | | { |
| 0 | 113 | | Stop_Measurable(measurableActions); |
| 0 | 114 | | return; |
| | 115 | | } |
| | 116 | |
|
| 14965 | 117 | | Update_Trigger(triggerTimeActions); |
| 14965 | 118 | | Update_Hold(holdActions); |
| 14965 | 119 | | Update_Measurable(measurableActions); |
| 14965 | 120 | | } |
| | 121 | |
|
| | 122 | | /// <summary> |
| | 123 | | /// Map the trigger actions to inputs + modifiers and check if their events must be triggered |
| | 124 | | /// </summary> |
| | 125 | | private void Update_Trigger(InputAction_Trigger[] triggerTimeActions) |
| | 126 | | { |
| 1346850 | 127 | | foreach (var action in triggerTimeActions) |
| | 128 | | { |
| 658460 | 129 | | if (action.isTriggerBlocked != null && action.isTriggerBlocked.Get()) |
| | 130 | | continue; |
| | 131 | |
|
| 658460 | 132 | | switch (action.DCLAction) |
| | 133 | | { |
| | 134 | | case DCLAction_Trigger.CameraChange: |
| | 135 | | // Disable until the fine-tuning is ready |
| 14965 | 136 | | if (!CommonScriptableObjects.cameraModeInputLocked.Get() && ENABLE_THIRD_PERSON_CAMERA) |
| 14965 | 137 | | InputProcessor.FromKey(action, KeyCode.V, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 138 | | break; |
| | 139 | | case DCLAction_Trigger.CursorUnlock: |
| 14965 | 140 | | InputProcessor.FromMouseButtonUp(action, mouseButtonIdx: 1, modifiers: InputProcessor.Modifier.Needs |
| | 141 | | #if !WEB_PLATFORM |
| 14965 | 142 | | InputProcessor.FromKey(action, KeyCode.Escape, modifiers: InputProcessor.Modifier.NeedsPointerLocked |
| | 143 | | #endif |
| 14965 | 144 | | break; |
| | 145 | | case DCLAction_Trigger.ToggleNavMap: |
| 14965 | 146 | | InputProcessor.FromKey(action, KeyCode.M, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 147 | | break; |
| | 148 | | case DCLAction_Trigger.ToggleFriends: |
| 14965 | 149 | | if (!allUIHidden) |
| 14965 | 150 | | InputProcessor.FromKey(action, KeyCode.L, modifiers: InputProcessor.Modifier.None); |
| 14965 | 151 | | break; |
| | 152 | | case DCLAction_Trigger.ToggleWorldChat: |
| 14965 | 153 | | if (!allUIHidden) |
| 14965 | 154 | | InputProcessor.FromKey(action, KeyCode.Return, modifiers: InputProcessor.Modifier.FocusNotInInpu |
| 14965 | 155 | | break; |
| | 156 | | case DCLAction_Trigger.ToggleUIVisibility: |
| 14965 | 157 | | InputProcessor.FromKey(action, KeyCode.U, modifiers: InputProcessor.Modifier.None); |
| 14965 | 158 | | break; |
| | 159 | | case DCLAction_Trigger.CloseWindow: |
| 14965 | 160 | | if (!allUIHidden && !DataStore.i.common.isSignUpFlow.Get()) |
| 14965 | 161 | | InputProcessor.FromKey(action, KeyCode.Escape, modifiers: InputProcessor.Modifier.None); |
| 14965 | 162 | | break; |
| | 163 | | case DCLAction_Trigger.ToggleControlsHud: |
| 14965 | 164 | | InputProcessor.FromKey(action, KeyCode.C, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 165 | | break; |
| | 166 | | case DCLAction_Trigger.ToggleSettings: |
| 14965 | 167 | | InputProcessor.FromKey(action, KeyCode.P, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 168 | | break; |
| | 169 | | case DCLAction_Trigger.ToggleStartMenu: |
| 14965 | 170 | | InputProcessor.FromKey(action, KeyCode.Tab, modifiers: InputProcessor.Modifier.None); |
| 14965 | 171 | | break; |
| | 172 | | case DCLAction_Trigger.TogglePlacesAndEventsHud: |
| 14965 | 173 | | InputProcessor.FromKey(action, KeyCode.X, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 174 | | break; |
| | 175 | | case DCLAction_Trigger.ToggleShortcut0: |
| 14965 | 176 | | InputProcessor.FromKey(action, KeyCode.Alpha0, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 177 | | break; |
| | 178 | | case DCLAction_Trigger.ToggleShortcut1: |
| 14965 | 179 | | InputProcessor.FromKey(action, KeyCode.Alpha1, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 180 | | break; |
| | 181 | | case DCLAction_Trigger.ToggleShortcut2: |
| 14965 | 182 | | InputProcessor.FromKey(action, KeyCode.Alpha2, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 183 | | break; |
| | 184 | | case DCLAction_Trigger.ToggleShortcut3: |
| 14965 | 185 | | InputProcessor.FromKey(action, KeyCode.Alpha3, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 186 | | break; |
| | 187 | | case DCLAction_Trigger.ToggleShortcut4: |
| 14965 | 188 | | InputProcessor.FromKey(action, KeyCode.Alpha4, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 189 | | break; |
| | 190 | | case DCLAction_Trigger.ToggleShortcut5: |
| 14965 | 191 | | InputProcessor.FromKey(action, KeyCode.Alpha5, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 192 | | break; |
| | 193 | | case DCLAction_Trigger.ToggleShortcut6: |
| 14965 | 194 | | InputProcessor.FromKey(action, KeyCode.Alpha6, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 195 | | break; |
| | 196 | | case DCLAction_Trigger.ToggleShortcut7: |
| 14965 | 197 | | InputProcessor.FromKey(action, KeyCode.Alpha7, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 198 | | break; |
| | 199 | | case DCLAction_Trigger.ToggleShortcut8: |
| 14965 | 200 | | InputProcessor.FromKey(action, KeyCode.Alpha8, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 201 | | break; |
| | 202 | | case DCLAction_Trigger.ToggleShortcut9: |
| 14965 | 203 | | InputProcessor.FromKey(action, KeyCode.Alpha9, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 204 | | break; |
| | 205 | | case DCLAction_Trigger.ToggleEmoteShortcut0: |
| 14965 | 206 | | InputProcessor.FromKey(action, KeyCode.Alpha0, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 207 | | break; |
| | 208 | | case DCLAction_Trigger.ToggleEmoteShortcut1: |
| 14965 | 209 | | InputProcessor.FromKey(action, KeyCode.Alpha1, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 210 | | break; |
| | 211 | | case DCLAction_Trigger.ToggleEmoteShortcut2: |
| 14965 | 212 | | InputProcessor.FromKey(action, KeyCode.Alpha2, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 213 | | break; |
| | 214 | | case DCLAction_Trigger.ToggleEmoteShortcut3: |
| 14965 | 215 | | InputProcessor.FromKey(action, KeyCode.Alpha3, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 216 | | break; |
| | 217 | | case DCLAction_Trigger.ToggleEmoteShortcut4: |
| 14965 | 218 | | InputProcessor.FromKey(action, KeyCode.Alpha4, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 219 | | break; |
| | 220 | | case DCLAction_Trigger.ToggleEmoteShortcut5: |
| 14965 | 221 | | InputProcessor.FromKey(action, KeyCode.Alpha5, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 222 | | break; |
| | 223 | | case DCLAction_Trigger.ToggleEmoteShortcut6: |
| 14965 | 224 | | InputProcessor.FromKey(action, KeyCode.Alpha6, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 225 | | break; |
| | 226 | | case DCLAction_Trigger.ToggleEmoteShortcut7: |
| 14965 | 227 | | InputProcessor.FromKey(action, KeyCode.Alpha7, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 228 | | break; |
| | 229 | | case DCLAction_Trigger.ToggleEmoteShortcut8: |
| 14965 | 230 | | InputProcessor.FromKey(action, KeyCode.Alpha8, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 231 | | break; |
| | 232 | | case DCLAction_Trigger.ToggleEmoteShortcut9: |
| 14965 | 233 | | InputProcessor.FromKey(action, KeyCode.Alpha9, modifiers: InputProcessor.Modifier.FocusNotInInput, m |
| 14965 | 234 | | break; |
| | 235 | | case DCLAction_Trigger.ChatNextInHistory: |
| 14965 | 236 | | InputProcessor.FromKey(action, KeyCode.UpArrow, modifiers: InputProcessor.Modifier.OnlyWithInputFocu |
| 14965 | 237 | | break; |
| | 238 | | case DCLAction_Trigger.ChatPreviousInHistory: |
| 14965 | 239 | | InputProcessor.FromKey(action, KeyCode.DownArrow, modifiers: InputProcessor.Modifier.OnlyWithInputFo |
| 14965 | 240 | | break; |
| | 241 | | case DCLAction_Trigger.Expression_Wave: |
| 14965 | 242 | | InputProcessor.FromKey(action, KeyCode.Alpha1, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 243 | | break; |
| | 244 | | case DCLAction_Trigger.Expression_FistPump: |
| 14965 | 245 | | InputProcessor.FromKey(action, KeyCode.Alpha2, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 246 | | break; |
| | 247 | | case DCLAction_Trigger.Expression_Robot: |
| 14965 | 248 | | InputProcessor.FromKey(action, KeyCode.Alpha3, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 249 | | break; |
| | 250 | | case DCLAction_Trigger.Expression_RaiseHand: |
| 14965 | 251 | | InputProcessor.FromKey(action, KeyCode.Alpha4, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 252 | | break; |
| | 253 | | case DCLAction_Trigger.Expression_Clap: |
| 14965 | 254 | | InputProcessor.FromKey(action, KeyCode.Alpha5, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 255 | | break; |
| | 256 | | case DCLAction_Trigger.Expression_ThrowMoney: |
| 14965 | 257 | | InputProcessor.FromKey(action, KeyCode.Alpha6, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 258 | | break; |
| | 259 | | case DCLAction_Trigger.Expression_SendKiss: |
| 14965 | 260 | | InputProcessor.FromKey(action, KeyCode.Alpha7, modifiers: InputProcessor.Modifier.FocusNotInInput | |
| 14965 | 261 | | break; |
| | 262 | | case DCLAction_Trigger.ToggleVoiceChatRecording: |
| 14965 | 263 | | InputProcessor.FromKey(action, KeyCode.T, modifiers: InputProcessor.Modifier.FocusNotInInput, modifi |
| 14965 | 264 | | break; |
| | 265 | | case DCLAction_Trigger.ToggleAvatarEditorHud: |
| 14965 | 266 | | InputProcessor.FromKey(action, KeyCode.I, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 267 | | break; |
| | 268 | | case DCLAction_Trigger.ToggleQuestsPanelHud: |
| 14965 | 269 | | InputProcessor.FromKey(action, KeyCode.J, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 270 | | break; |
| | 271 | | case DCLAction_Trigger.ToggleAvatarNamesHud: |
| 14965 | 272 | | InputProcessor.FromKey(action, KeyCode.N, modifiers: InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 273 | | break; |
| | 274 | | default: |
| 0 | 275 | | throw new ArgumentOutOfRangeException(); |
| | 276 | | } |
| | 277 | | } |
| 14965 | 278 | | } |
| | 279 | |
|
| | 280 | | /// <summary> |
| | 281 | | /// Map the hold actions to inputs + modifiers and check if their events must be triggered |
| | 282 | | /// </summary> |
| | 283 | | private void Update_Hold(InputAction_Hold[] holdActions) |
| | 284 | | { |
| 329230 | 285 | | foreach (var action in holdActions) |
| | 286 | | { |
| 149650 | 287 | | if (action.isHoldBlocked != null && action.isHoldBlocked.Get()) |
| | 288 | | continue; |
| | 289 | |
|
| 149650 | 290 | | switch (action.DCLAction) |
| | 291 | | { |
| | 292 | | case DCLAction_Hold.Sprint: |
| 14965 | 293 | | InputProcessor.FromKey(action, InputSettings.WalkButtonKeyCode, |
| | 294 | | InputProcessor.Modifier.FocusNotInInput | InputProcessor.Modifier.NotInStartMenu); |
| 14965 | 295 | | break; |
| | 296 | | case DCLAction_Hold.Jump: |
| 14965 | 297 | | InputProcessor.FromKey(action, InputSettings.JumpButtonKeyCode, |
| | 298 | | InputProcessor.Modifier.FocusNotInInput | InputProcessor.Modifier.NotInStartMenu); |
| 14965 | 299 | | break; |
| | 300 | | case DCLAction_Hold.ZoomIn: |
| 14965 | 301 | | InputProcessor.FromKey(action, KeyCode.KeypadPlus); |
| 14965 | 302 | | InputProcessor.FromKey(action, KeyCode.Plus); |
| 14965 | 303 | | break; |
| | 304 | | case DCLAction_Hold.ZoomOut: |
| 14965 | 305 | | InputProcessor.FromKey(action, KeyCode.KeypadMinus); |
| 14965 | 306 | | InputProcessor.FromKey(action, KeyCode.Minus); |
| 14965 | 307 | | break; |
| | 308 | | case DCLAction_Hold.FreeCameraMode: |
| | 309 | | // Disable until the fine-tuning is ready |
| 14965 | 310 | | if (ENABLE_THIRD_PERSON_CAMERA) |
| 14965 | 311 | | InputProcessor.FromKey(action, KeyCode.Y, InputProcessor.Modifier.NeedsPointerLocked); |
| 14965 | 312 | | break; |
| | 313 | | case DCLAction_Hold.VoiceChatRecording: |
| | 314 | | // Push to talk functionality only triggers if no modifier key is pressed |
| 29930 | 315 | | InputProcessor.FromKey(action, KeyCode.T, InputProcessor.Modifier.FocusNotInInput, null); |
| 29930 | 316 | | break; |
| | 317 | | case DCLAction_Hold.DefaultConfirmAction: |
| 14965 | 318 | | InputProcessor.FromKey(action, KeyCode.E); |
| 14965 | 319 | | break; |
| | 320 | | case DCLAction_Hold.DefaultCancelAction: |
| 14965 | 321 | | InputProcessor.FromKey(action, KeyCode.F); |
| 14965 | 322 | | break; |
| | 323 | | case DCLAction_Hold.OpenExpressions: |
| 14965 | 324 | | InputProcessor.FromKey(action, KeyCode.B, InputProcessor.Modifier.FocusNotInInput); |
| 14965 | 325 | | break; |
| | 326 | | default: |
| 0 | 327 | | throw new ArgumentOutOfRangeException(); |
| | 328 | | } |
| | 329 | | } |
| 14965 | 330 | | } |
| | 331 | |
|
| | 332 | | /// <summary> |
| | 333 | | /// Map the measurable actions to inputs + modifiers and check if their events must be triggered |
| | 334 | | /// </summary> |
| | 335 | | private void Update_Measurable(InputAction_Measurable[] measurableActions) |
| | 336 | | { |
| 179580 | 337 | | foreach (var action in measurableActions) |
| | 338 | | { |
| 74825 | 339 | | if (action.isMeasurableBlocked != null && action.isMeasurableBlocked.Get()) |
| | 340 | | continue; |
| | 341 | |
|
| 74825 | 342 | | switch (action.DCLAction) |
| | 343 | | { |
| | 344 | | case DCLAction_Measurable.CharacterXAxis: |
| 14965 | 345 | | InputProcessor.FromAxis(action, "Horizontal", InputProcessor.Modifier.FocusNotInInput | InputProcess |
| 14965 | 346 | | break; |
| | 347 | | case DCLAction_Measurable.CharacterYAxis: |
| 14965 | 348 | | InputProcessor.FromAxis(action, "Vertical", InputProcessor.Modifier.FocusNotInInput | InputProcessor |
| 14965 | 349 | | break; |
| | 350 | | case DCLAction_Measurable.CameraXAxis: |
| 14965 | 351 | | InputProcessor.FromAxis(action, "Mouse X", InputProcessor.Modifier.NeedsPointerLocked); |
| 14965 | 352 | | break; |
| | 353 | | case DCLAction_Measurable.CameraYAxis: |
| 14965 | 354 | | InputProcessor.FromAxis(action, "Mouse Y", InputProcessor.Modifier.NeedsPointerLocked); |
| 14965 | 355 | | break; |
| | 356 | | case DCLAction_Measurable.MouseWheel: |
| 14965 | 357 | | InputProcessor.FromAxis(action, "Mouse ScrollWheel", modifiers: InputProcessor.Modifier.FocusNotInIn |
| 14965 | 358 | | break; |
| | 359 | | default: |
| 0 | 360 | | throw new ArgumentOutOfRangeException(); |
| | 361 | | } |
| | 362 | | } |
| 14965 | 363 | | } |
| | 364 | |
|
| | 365 | | private static void Stop_Measurable(InputAction_Measurable[] measurableActions) |
| | 366 | | { |
| 0 | 367 | | foreach (var action in measurableActions) |
| 0 | 368 | | action.RaiseOnValueChanged(0); |
| 0 | 369 | | } |
| | 370 | | } |