コード例 #1
0
        public override void InjectKeyboardInput(RIMNativeMethods.KeyboardInput keyboardInput)
        {
            var inputKeyboardInfo = new InjectedInputKeyboardInfo();

            inputKeyboardInfo.KeyOptions = (InjectedInputKeyOptions)(int)keyboardInput.flags;
            inputKeyboardInfo.ScanCode   = keyboardInput.scanCode;
            inputKeyboardInfo.VirtualKey = keyboardInput.virtualKeyCode;
            var inputKeyboardInfoList = new List <InjectedInputKeyboardInfo>();

            inputKeyboardInfoList.Add(item: inputKeyboardInfo);
            this.injector.InjectKeyboardInput(input: inputKeyboardInfoList);
        }
コード例 #2
0
 public virtual void InjectKeyboardInput(RIMNativeMethods.KeyboardInput input)
 {
     throw new NotImplementedException(message: "InjectKeyboardInput is not implemented in this InputDevice object");
 }