X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <A55EFFEAAA6140E5AB187FE4202F4C38@abhiPC>
From: "Abhijit Nandy" <abhijit.nandy@gmail.com>
To: <cygwin@cygwin.com>
References: <038B81BEAE154E93BCC56C12151B5F4D@abhiPC>
In-Reply-To: <038B81BEAE154E93BCC56C12151B5F4D@abhiPC>
Subject: Re: Joystick support
Date: Sat, 6 Mar 2010 20:32:13 +0100
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=original
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi,
I am doing a hardware project that exposes some hardware data as a joystick 
in Linux at /dev/input/js0

I thought I could use Cygwin for testing my programs that use this joystick 
data but it seems Cygwin does not have the nodes at /dev/js0 and may not be 
able to read the joystick. Is there any way to get joystick data through 
this node in Cygwin. I cannot use glut or SDL for joystick input.

Also I do not have a joystick to test with so I am using PPJoy which is a 
parallel port joystick emulator. It convert mouse movements to joystick 
movement. It provides an API as well through which its data is accessible

I was thinking perhaps I could make a character file at 
C:\cygwin\dev\input\js0 and then direct the data from PPjoy to this file in 
the format expected by my program. Of course this copying of data has to be 
done in a separate win32 application that will update this file and so it 
may lock it. In which case my program running in Cygwin cannot access it.

Any ideas on how to do this better ? I need to have some way of getting 
joystick data into my linux program without using any library.


Abhijit 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

