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 29.541.380 Times

Linux::Input::Joystick 1.02

  Date Added: October 06, 2010  |  Visits: 756

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
USER REVIEWS
More Reviews or Write Review


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  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB