|
RCU - Remote Control Unit Interface |
RCU - Remote Control Unit Interface
use RCU;
This module provides a generic interface to remote control units (only receivers at the moment, as I cannot test more). It only provides an abstract management interface, other modules are required for the hardware access (RCU::Irman and RCU::Lirc are included, however).
Please read the RCU::Receipts manpage to get some idea on how to proceed after you installed the module (testing & standard techniques).
The RCU class provides a general interface to anything you might want to do to, it represents your application.
interface must be an interface
specification similar to DBI's DSN:
RCU:ifname:arg:arg...
Examples:
low-level interface (without RCU:: prefix) or an arrayref containing
name and constructor arguments. If the interface name has a :: prefix
it will be used as-is (without that prefix, of course).
For a much better interface, see the RCU::Event manpage.
get is called in scalar context it only returns
unrepeated keycodes.
This interface is problematic: no key-up events are generated, and the repeat events occur pseudo-randomly and have no time relation between each other, so better use the event-based interface provided by RCU::Event.
This class collects information about rcu keys.
RCU::Interface provides the base class for all rcu interfaces, it is rarely used directly.
get always returns an event, waiting if neccessary, while poll only
checks for an event: If one is pending it is returned, otherwise poll
returns nothing.
the RCU::Irman manpage, the RCU::Lirc manpage.
This perl extension was written by Marc Lehmann <schmorp@schmorp.de>.
No send interface.
|
RCU - Remote Control Unit Interface |