Hi Paul,

   You should invoke sensor.getRead() instead of
sensor.lastRead() to instruct InputDevice calling
pollAndProcessInput() for every frame if DEMAND_DRIVER
is used. lastRead() only return the last number read
in getRead().

Thanks.

- Kelvin
-----------
Java3D Team
Sun Microsystems Inc.

>X-Warning: VM230.AKH-WIEN.AC.AT: Host LYMNAEA.imc.akh-wien.ac.at claimed to be 
>akh-wien.ac.at
>X-Accept-Language: de
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Date: Fri, 12 Jan 2001 12:06:11 +0100
>From: "Dipl. Ing. Paul Szawlowski" <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Demand driven input device
>To: [EMAIL PROTECTED]
>
>Hello !
>
>I finally managed to write an input device and everything works fine if
>i declare my input device as NON_BLICKING. But if I declare my input
>device as DEMAND_DRIVEN the pollAndProcessInput method does not get
>called anymore. From the debugger I know that sensor.lastRead( ) is
>called. I don't think that it is my duty to call pollAndProcessInput by
>myself if I use a demand driven input device, do I ?
>So I consider that this is a bug.
>
>regards
>Paul
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to