コード例 #1
0
        public override void InjectMouseInput(RIMNativeMethods.MouseInput mouseInput)
        {
            var injectedInputMouseInfo = new InjectedInputMouseInfo();

            injectedInputMouseInfo.DeltaX                   = mouseInput.dx;
            injectedInputMouseInfo.DeltaY                   = mouseInput.dy;
            injectedInputMouseInfo.MouseData                = mouseInput.mouseData;
            injectedInputMouseInfo.MouseOptions             = (InjectedInputMouseOptions)(int)mouseInput.flags;
            injectedInputMouseInfo.TimeOffsetInMilliseconds = mouseInput.time;
            var injectedInputMouseInfoList = new List <InjectedInputMouseInfo>();

            injectedInputMouseInfoList.Add(item: injectedInputMouseInfo);
            this.injector.InjectMouseInput(input: injectedInputMouseInfoList);
        }
コード例 #2
0
 public virtual void InjectMouseInput(RIMNativeMethods.MouseInput mouseInput)
 {
     throw new NotImplementedException(message: "InjectMouseInput is not implemented in this InputDevice object");
 }