www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Sat, 6 Mar 2010 14:40:58 -0500 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Joystick support |
Message-ID: | <20100306194058.GA13985@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <038B81BEAE154E93BCC56C12151B5F4D AT abhiPC> <A55EFFEAAA6140E5AB187FE4202F4C38 AT abhiPC> |
MIME-Version: | 1.0 |
In-Reply-To: | <A55EFFEAAA6140E5AB187FE4202F4C38@abhiPC> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Sat, Mar 06, 2010 at 08:32:13PM +0100, Abhijit Nandy wrote: >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. There is no "device driver" support for joysticks in Cygwin. Unless the joystick looks like a device which cygwin knows about (like a com port) there really isn't any way that you can make the DLL recognize it. cgf -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |