InputRebind
- Namespace: Turian.Engine.Core
- Source File: InputActionService.cs
A rebinding in progress: it watches for the next control to go down and writes it into the binding it was started for. Modifier keys and Escape are ignored so the player can still cancel.
Properties
IsComplete
(bool) { get; set }: Whether a control has been captured and written.
Captured
(InputControl) { get; set } = InputControl.None: What was captured, or None while still listening.
WasCancelled
(bool) { get; set }: Whether the player cancelled instead of pressing something bindable.
Public Methods
Update
public bool Update(IInputSource source)
Looks for a control that went down this frame. Called by Update.
Parameters:
source(IInputSource): The devices to watch.
Returns: bool
- True once the operation has finished, whether captured or cancelled.