Help for this page

Select Code to Download


  1. or download this
    #define EVIOCGRAB               _IOW('E', 0x90, int)                  
    +  /* Grab/Release device */
    
  2. or download this
    open my $dev, "<", "/dev/input/event14" or die $!;
    my $r = ioctl $dev, 0x90, 1;
    print "$!\n" unless defined $r;
    
  3. or download this
    require "linux/input.ph";
    
    open my $dev, "<", "/dev/input/event14" or die $!;
    my $r = ioctl $dev, EVIOCGRAB(), 1;
    print "$!\n" unless defined $r;