public static float GetInputValue(EKeyId key) { float changedValue; SInputEventExtentions.KeyInputValueLog.TryGetValue(key, out changedValue); return(changedValue); }
public static bool KeyDown(EKeyId key) { bool isDown; SInputEventExtentions.KeyDownLog.TryGetValue(key, out isDown); return(isDown); }
public static bool KeyDown(this SInputEvent e, EKeyId k) { bool isDown = false; KeyDownLog.TryGetValue(k, out isDown); return(isDown); }
// For analog inputs public static bool KeyChanged(this SInputEvent e, EKeyId k) { return(e.keyId == k && e.state == EInputState.eIS_Changed); }
public static bool KeyUp(this SInputEvent e, EKeyId k) { return(e.keyId == k && e.state == EInputState.eIS_Released); }