Exemple #1
0
        protected override void OnAttached(InputRecorder inputRecorder)
        {
            if (inputRecorder.FrameDataRecorder is FrameInputData)
            {
                MouseFrameInputData.RegistTypeToFrameInputData();

                var frameInputData = inputRecorder.FrameDataRecorder as FrameInputData;
                frameInputData.RemoveChildRecorder(MouseFrameInputData.KEY_CHILD_INPUT_DATA_TYPE);

                var inputData = CreateInputData();
                frameInputData.AddChildRecorder(inputData);
            }
        }
Exemple #2
0
        public override IFrameDataRecorder CreateInputData()
        {
            var btn = new MouseFrameInputData();

            return(btn);
        }