public bool Register(KeystrokeListener listener) { ObjectPath op = new ObjectPath (listener.Path); EventListenerMode mode = new EventListenerMode (listener.Synchronous, listener.Preemptive, listener.Global); return proxy.RegisterKeystrokeListener (op, listener.Keys, listener.Mask, listener.Types, mode); }
public void Deregister(KeystrokeListener listener) { ObjectPath op = new ObjectPath (listener.Path); proxy.DeregisterKeystrokeListener (op, listener.Keys, listener.Mask, listener.Types); }