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

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

Serving Software Downloads in 976 Categories, Downloaded 32.284.859 Times

Linux::Input::Joystick 1.02

  Date Added: October 06, 2010  |  Visits: 805

Linux::Input::Joystick

Report Broken Link
Printer Friendly Version


Product Homepage
Download (84 downloads)

Linux::Input::Joystick is a joystick-specific interface for Linux 2.2+ SYNOPSIS Usage use YAML; my $js = Linux::Input::Joystick->new(/dev/input/js0); while (1) { my @event = $js->poll(0.01); print Dump($_) foreach (@event); } This is a subclass of Linux::Input that implements the joystick event interface that versions of Linux from 2.2 onward support. It differs from the normal event interface in that it uses a slightly different C struct to return event information. This subclass inherits all of Linux::Inputs methods, but differs from it in the following ways: Class Methods new This method takes a $filename and returns a Linux::Input::Joystick object on success. Example: my $js = Linux::Input::Joystick->new(/dev/input/js1); event_bytes This method returns the size of the joystick event structure (which is always 8) no matter what platform you run this on. Object Methods poll This method takes a $timeout as a parameter and returns an list of @events after that timeout has elapsed. The hashrefs inside @events have the following key/value pairs. time This is the time in microseconds that this event happened. type This is the type of event. number This number represents a more specific instance of type. For example, if type is 1 (meaning button event), then number might be 5 (meaning button 5 moved). value This number specifies what happened. Keeping the previous example in mind, if the value received is 1, that means the button was pressed. However, if its 0, that means the button was released. For more information on what values to expect in this hashref, go look at /usr/include/linux/joystick.h.

Requirements: No special requirements
Platforms: Linux
Keyword: Button Event For Linux Interface Libraries Linux Linuxinputjoystick Number Programming Type
Users rating: 0/10

License: Freeware Size: 6.14 KB
LINUX::INPUT::JOYSTICK RELATED
Utilities  -  AMA Desktop Linux 2007-1.07
AMA Desktop Linux is a Linux Distribution for AMA Computer University that aims to provide an interface that is comfortable to existing Microsoft Windows users. See http://picasaweb.google.com/joelbryan.juliano/AMADesktop2007 for more screenshots.
643.21 MB  
Printer Tools  -  Lexmark Z11 printer driver for Linux 1.1
Lexmark Z11 printer driver for Linux is a Linux printer driver/filter for the Lexmark Z11 printer, supporting color and b/w printing, variable page size and more. The driver lz11-V2 is an improvement of the lz11 driver, which was first released...
61.44 KB  
Utilities  -  Ark Linux 2007.1
Ark Linux is a Linux distribution designed especially for desktop use, primarily for people without prior Linux experience. Ark Linuxs main goal is ease of use, and the inclusion of many tools end users will need. Ark Linux is fully Open Source...
699 MB  
Libraries  -  plptools 0.18
plptools is a set of libraries and utilities for enabling Unix (mainly Linux) systems to communicate with a Psion palmtop over a serial line. On Linux, a connection over IrDA using the IrCOMM feature is also possible. The following...
1.2 MB  
Utilities  -  Trustix Secure Linux 3.0.5
Trustix Secure Linux is a Linux distribution for servers with focus on security and stability. Trustix Secure Linux was specifically designed for the server market. With a focus on security and stability, the whole system benefits from a fully...
629 MB  
Utilities  -  Scientific Linux 5.0 Live CD/DVD
Scientific Linux is a Linux release put together by Fermilab, CERN, and various other labs and universities around the world. Its primary purpose is to reduce duplicated effort of the labs, and to have a common install base for the various...
693 MB  
Utilities  -  Draco GNU/Linux 0.1
Draco GNU/Linux is a Linux distribution based on Slackware 11.0 and featuring packages from pkgsrc 2007Q1.. Draco is a small and flexible GNU/Linux distribution, expandable through the pkgsrc framework.
170.7 MB  
Utilities  -  ProMEPIS Linux 2005.b04
ProMEPIS Linux is a linux distribution based on Debian that can be run from your CD drive without installation. Where it shines is its easy, 100% "point and click" installation, and automatic detection of not only "normal" computer hardware but...
696.8 MB  
Utilities  -  USB Pen Drive Linux 20070605
USB Pen Drive Linux is portable Linux compilation that is based purely on Debian Linux. The project can be installed to a portable hard drive, USB flash pen drive or even an ipod or other portable device. USB Linux installation enables you to...
460.4 MB  
Utilities  -  Conectiva 10
Conectiva Linux is a Linux distribution from Brazil. The distribution includes support for English, Spanish, and Portuguese. It uses apt-get as the mechanism for updating and installing packages, with RPM as the package format..
644 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 3.15.3
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