示例#1
0
        public override bool SetKeyState(VirtualDeviceCapability capability, object keyHandle, KeyState state)
        {
            switch (capability)
            {
            case VirtualDeviceCapability.Axis:
                if (!keyState.ContainsKey(keyHandle.ToString()))
                {
                    return(false);
                }
                keyState[keyHandle.ToString()] = state;
                modifiedKeys.Add(keyHandle);
                return(true);

            default:
                return(false);
            }
        }
示例#2
0
        public override bool SetKeyState(VirtualDeviceCapability capability, object keyHandle, KeyState state)
        {
            // TODO: implement
            string keyName = keyHandle.ToString();

            switch (capability)
            {
            case VirtualDeviceCapability.Key:
                if (!keyState.ContainsKey(keyName))
                {
                    return(false);
                }
                keyState[keyName] = state;
                modifiedKeys.Add(keyHandle);
                return(true);

            default:
                return(false);
            }
        }
示例#3
0
 public abstract bool SetKeyState(VirtualDeviceCapability capability, object keyHandle, KeyState state);