Inheritance: DeviceEventListener
コード例 #1
0
 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);
 }
コード例 #2
0
 public void Deregister(KeystrokeListener listener)
 {
     ObjectPath op = new ObjectPath (listener.Path);
     proxy.DeregisterKeystrokeListener (op, listener.Keys, listener.Mask, listener.Types);
 }