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); } }
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); } }
public abstract bool SetKeyState(VirtualDeviceCapability capability, object keyHandle, KeyState state);