Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.240.064 Times

Linux::Input 1.02

  Date Added: July 09, 2010  |  Visits: 1.783

Linux::Input

Report Broken Link
Printer Friendly Version


Product Homepage
Download (107 downloads)



Linux::Input is a Linux input event interface. SYNOPSIS Example: 1 joystick using event API my $js1 = Linux::Input->new(/dev/input/event3); while (1) { while (my @events = $js1->poll(0.01)) { foreach (@event) { } } } Example: 2 joysticks using joystick API (different event structure) my $js1 = Linux::Input::Joystick->new(/dev/input/js0); my $js2 = Linux::Input::Joystick->new(/dev/input/js1); my $selector = IO::Select->new(); $selector->add($js1->fh); $selector->add($js2->fh); while (my $fh = $selector->can_read) { my @event; if ($fh == $js1->fh) { @event = $js1->poll() } elsif ($fh == $js2->fh) { @event = $js2->poll() } foreach (@event) { # work } } Example 3: monitor all input devices use File::Basename qw(basename); my @inputs = map { "/dev/input/" . basename($_) } ; my @dev; my $selector = IO::Select->new(); foreach (@inputs) { my $device = Linux::Input->new($_); $selector->add($device->fh); push @dev, $device; } while (my $fh = $selector->can_read) { # work } Example 4: testing for events on the command line # information on what event queue belongs to what device cat /proc/bus/input/devices # verify that events are coming in sudo evtest.pl /dev/input/event*.

Requirements: No special requirements
Platforms: Linux
Keyword: Event Fh Input Input Event Libraries Linux Linux Input Event Linuxinput New Programming
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


LINUX::INPUT RELATED
Utilities  -  Foxit Reader for Desktop Linux V1.120090810
Foxit Reader is a free PDF document viewer for the Linux platform, with a new streamlined interface, user-customized toolbar, incredibly small size, breezing-fast launch speed and rich features. This empowers PDF document users with Zoom function,...
3.61 MB  
Modules  -  Filter Default 5.x-1.0
The Filter Default module allows you to assign a default input format for new nodes and comments for each role on your site. It adds a 'Defaults' tab to the Administer > Site configuration > Input formats page on which you can manage the...
10 KB  
Utilities  -  Asynchronous Socket Library 0.4
Async is an Asynchronous Socket Library (C++) providing event-driven socket programming for Linux (or any other Os you get it to compile on). The event callbacks (overridden virtual methods) are called from a loop (similar to GTK+'s...
184.32 KB  
Libraries  -  Chilkat Class Libraries for Java 9.2.1
The full suite of Chilkat components & libraries are now available for the Java programming language. Commercially licensed components include: Email (POP3 / SMTP) IMAP Zip, GZip, and Unix Compress Encryption MIME and S/MIME FTP HTTP MHT...
 
Utilities  -  Chrome OS 1.3.767 RC
Chrome OS Linux is a brand new free operating system built around the revolutionary Google Chrome browser. The aim of this project is to provide a lightweight Linux distribution for the best web browsing experience. Featured...
631 MB  
Libraries  -  Linux::Joystick 0.0.1
Linux::Joystick is an object-oriented, pure Perl API for accessing joystick devices under Linux-based operating systems. Linux::Joystick module is capable of using either blocking or non-blocking I/O, and represents each axis change or button...
22.53 KB  
Libraries  -  DateTime::Event::Cron 0.07
DateTime::Event::Cron is a DateTime extension for generating recurrence sets from crontab lines and files. SYNOPSIS use DateTime::Event::Cron; # DateTime::Set construction from crontab line $crontab = */3 15 1-10 3,4,5 */2; $set =...
10.24 KB  
Libraries  -  DateTime::Event::Sunrise 0.0501
DateTime::Event::Sunrise is a Perl DateTime extension for computing the sunrise/sunset on a given day. SYNOPSIS use DateTime; use DateTime::Event::Sunrise; my $dt = DateTime->new( year => 2000, month => 6, day => 20, ); my $sunrise =...
12.29 KB  
Programming  -  Disassembler for linux 0.3.3
Disassembler for linux is a software that will try to provide a gui driven tool to disassemble executables. Written in C++, and will disassemble binaries from a number of OSses..
368.64 KB  
Utilities  -  Lunar Linux 1.6.1 / 1.6.2 Beta 1
Lunar is a source based Linux distribution developed by a talented team of programmers from all over the world, working together to extend the Linux technology into better-tailored and more optimized software for the end user. Lunar uses and...
257 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB