|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |