Example #1
0
        public static float GetInputValue(EKeyId key)
        {
            float changedValue;

            SInputEventExtentions.KeyInputValueLog.TryGetValue(key, out changedValue);
            return(changedValue);
        }
Example #2
0
        public static bool KeyDown(EKeyId key)
        {
            bool isDown;

            SInputEventExtentions.KeyDownLog.TryGetValue(key, out isDown);
            return(isDown);
        }
Example #3
0
        public static bool KeyDown(this SInputEvent e, EKeyId k)
        {
            bool isDown = false;

            KeyDownLog.TryGetValue(k, out isDown);
            return(isDown);
        }
Example #4
0
 // For analog inputs
 public static bool KeyChanged(this SInputEvent e, EKeyId k)
 {
     return(e.keyId == k && e.state == EInputState.eIS_Changed);
 }
Example #5
0
 public static bool KeyUp(this SInputEvent e, EKeyId k)
 {
     return(e.keyId == k && e.state == EInputState.eIS_Released);
 }