Main > Programming > Libraries >

Linux::Input::Joystick 1.02

Linux::Input::Joystick 1.02

Sponsored Links

Linux::Input::Joystick 1.02 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1009
Date added: 2007-01-25
Publisher: John Beppu

Linux::Input::Joystick 1.02 description

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

Linux::Input::Joystick 1.02 Screenshot

Advertisements

Linux::Input::Joystick 1.02 Keywords

Bookmark Linux::Input::Joystick 1.02

Hyperlink code:
Link for forum:

Linux::Input::Joystick 1.02 Copyright

WareSeeker periodically updates pricing and software information of Linux::Input::Joystick 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Linux::Input::Joystick 1.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Linux::Input is a Linux input event interface. Free Download
Linux::Joystick is an object-oriented, pure Perl API for accessing joystick devices under Linux-based operating systems. Free Download
Linux::Inotify2 is a scalable directory/file change notification. Free Download
EKG is a simple yet powerful key Free Download
Linux::Smaps is a Perl interface to /proc/PID/smaps. Free Download
A well drawn small collection of cool New Zealand-themed icons Free Download
libjsw is a UNIX joystick wrapper library and calibrator. Free Download
Nagios (formerly Netsaint) is a daemon written in C that is designed to monitor networked hosts and services. Free Download