コード例 #1
0
ファイル: Binds.cs プロジェクト: asheraryam/Unary_Common
        private void ClearKey(string Key, string Action)
        {
            InputEventKey EventKey = new InputEventKey();

            EventKey.Scancode = (uint)EnumUtil.GetKeyFromString <int, KeyList>(Key);

            if (InputMap.HasAction(Action))
            {
                if (InputMap.ActionHasEvent(Action, EventKey))
                {
                    InputMap.ActionEraseEvent(Action, EventKey);
                }
            }
        }