POV-Ray : Newsgroups : povray.general : Joystick to pov Server Time
3 Aug 2024 00:24:16 EDT (-0400)
  Joystick to pov (Message 1 to 4 of 4)  
From: Greg M  Johnson
Subject: Joystick to pov
Date: 2 Jul 2004 23:37:04
Message: <40e629e0$1@news.povray.org>
Is there any way to make the output of a joystick readable by pov? Such as a
frequently rewritten text file?  (Yeah, this isn't a question about povray
technology but general technology.)


Post a reply to this message

From: Tyler Eaves
Subject: Re: Joystick to pov
Date: 3 Jul 2004 19:16:57
Message: <pan.2004.07.03.23.18.09.830732@gmail.com>
On Fri, 02 Jul 2004 23:37:06 -0400, Greg M. Johnson wrote:

> Is there any way to make the output of a joystick readable by pov? Such as a
> frequently rewritten text file?  (Yeah, this isn't a question about povray
> technology but general technology.)

Under linux, you might be able to do something like cat /dev/input/js0 >
somefile.txt. How to interpret the data is left as an exercise for the
reader...


Post a reply to this message

From: scott
Subject: Re: Joystick to pov
Date: 5 Jul 2004 04:21:49
Message: <40e90f9d$1@news.povray.org>
Greg M. Johnson wrote:
> Is there any way to make the output of a joystick readable by pov?
> Such as a frequently rewritten text file?  (Yeah, this isn't a
> question about povray technology but general technology.)

If you're using windows you should write something using DirectInput (the
part of DirectX that deals with input devices).  It should be a fairly
trivial modification to one of the sample apps (provided with the SDK from
microsoft) to write the value to a text file every so often.


Post a reply to this message

From: Ross
Subject: Re: Joystick to pov
Date: 6 Jul 2004 10:51:12
Message: <40eabc60$1@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> wrote in message
news:40e629e0$1@news.povray.org...
> Is there any way to make the output of a joystick readable by pov? Such as
a
> frequently rewritten text file?  (Yeah, this isn't a question about povray
> technology but general technology.)
>
>

the game library SDL (not pov sdl) http://www.libsdl.org/index.php is really
easy to program with. It would definately be possible to read joystick
input, and then write the coordinates to a text file. well, i better back up
a second. i know it's possible with a mouse, i've never actually hooked a
joystick up to try it. libSDL is cross platform and easier to use than
DirectX (imo)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.