Linux::Input::Info - get information about /dev/input/event* devices under Linux


Linux-Input-Info documentation  | view source Contained in the Linux-Input-Info distribution.

Index


NAME

Top

Linux::Input::Info - get information about /dev/input/event* devices under Linux

SYNOPSIS

Top

	use Linux::Input::Info qw(:all); # optionally export EV_* constants

    for (0..32) {
        my $i = Linux::Input::Info->new($_);
        printf "/dev/input/event%d\n", $_;

        printf "\tbustype  : %s\n",   $i->bustype;
        printf "\tvendor   : 0x%x\n", $i->vendor;
        printf "\tproduct  : 0x%x\n", $i->product;
        printf "\tversion  : %d\n",   $i->version;
        printf "\tname     : %s\n",   $i->name;
        printf "\tuniq     : %s\n",   $i->uniq;
        printf "\tphys     : %s\n",   $i->phys;
        printf "\tbits ev  :";
        printf " %s", $i->ev_name($_) for $i->bits;
        printf "\n";        
    }

DESCRIPTION

Top

METHODS

Top

new <event number>

Returns undef if the device does not exist.

bustype

get the bus type

vendor

get vendor id

product

get the product id

version

get driver version

name

get device name

uniq

get unique identifier

phys

get physical location

bits

get event bits

ev_name

map event bit to event name

BUGS

Top

Make sure it doesn't leak memory.

AUTHOR

Top

Simon Wistow <simon@thegestalt.org>

COPYRIGHT

Top

SEE ALSO

Top

Linux::Input

Gerd Knorr's input utils - http://dl.bytesex.org/cvs-snapshots/


Linux-Input-Info documentation  | view source Contained in the Linux-Input-Info distribution.