public bool GetState(InputStateType type) { switch (type) { case InputStateType.PRESSED: return(pressed); case InputStateType.JUST_PRESSED: return(justPressed); case InputStateType.JUST_RELESED: return(justReleased); } throw new System.Exception("INPUT ERROR: Unexpected result: " + type.ToString()); }