コード例 #1
0
ファイル: InputService.cs プロジェクト: svanderweele/ECS-Core
        public bool IsKeyBindHeldDown(string inputBindConfigurationId, string action)
        {
            IInputBindConfiguration bindConfiguration = GetBindConfiguration(inputBindConfigurationId);
            var binds = bindConfiguration.GetBinds(action);


            foreach (var bind in binds)
            {
                if (IsKeyHeldDown(bind.Key))
                {
                    return(true);
                }
            }

            return(false);
        }
コード例 #2
0
ファイル: InputService.cs プロジェクト: svanderweele/ECS-Core
 public void AddBindConfiguration(IInputBindConfiguration inputBindConfiguration)
 {
     _bindConfigs.Add(inputBindConfiguration);
 }