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); } }
public override IFrameDataRecorder CreateInputData() { var btn = new MouseFrameInputData(); return(btn); }