Example #1
0
        private void RegisterPlatforms()
        {
            // Handle Fire TV Platforms
            var inputs = CreateDefaultInputDefinition();

            inputs[PlatformInputTypes.Touch] = false;

            var fireTV = new PlatfromInputDefinition("Amazon AFTB", inputs, DeviceType.Console);

            platformOverrides.Add(fireTV.deviceModel, fireTV);

            var fireTVStick = new PlatfromInputDefinition("Amazon AFTM", inputs, DeviceType.Console);

            platformOverrides.Add(fireTVStick.deviceModel, fireTVStick);
        }
Example #2
0
        public PlatfromInputDefinition GetPlatformDefinition()
        {
            //TODO need to look up existing platform definitions
            var currentDeviceModel = SystemInfo.deviceModel;

            if (platformOverrides.ContainsKey(currentDeviceModel))
            {
                return(platformOverrides[currentDeviceModel]);
            }


            var inputs = CreateDefaultInputDefinition();

            var def = new PlatfromInputDefinition(SystemInfo.deviceModel, inputs);

            return(def);
        }