comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ^_^Keyboard Events question!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ^_^Keyboard Events question! [message #54726] Sat, 07 July 2007 20:03
jschwab@gmail.com is currently offline  jschwab@gmail.com
Messages: 30
Registered: December 2006
Member
On Jul 6, 10:37 am, hradilv <hrad...@yahoo.com> wrote:
> On Jul 5, 11:53 pm, airy.ji...@gmail.com wrote:
>
>> Hi,everyone!I'm come back again.
>> Thanks for David and Michel's help.I've solved many problem now.Lately
>> I'll release a demo of our new achieve,it's very interesting.But now I
>> still got a question.
>> The widget_draw object can respose the keyboard events as we know,but
>> I've found it just can catch only one key pressdown at a same time.I
>> pressed two key like "a" and "w" at the same time,which represents the
>> moving to the westnorth (like the first person angle game
>> CounterStrike and Quake3),but the IDL just record the key "a".If I
>> wanna move to the westnorth that using the keyboard in my program,I
>> just can press "a" to the west first,then press "w" to the north.
>> Is there a nice way to solve this problem?Waiting for your
>> participate!!!
>> A strage question again?^_*
>
> Use 'q' ?

No, 'q' is to switch to the previous weapon.

Apologies,
Josiah
Re: ^_^Keyboard Events question! [message #54731 is a reply to message #54726] Fri, 06 July 2007 10:01 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
<sigh>

My directInput dlm accepts multiple key presses and you can poll it
faster than IDL receives input events so you get smoother input
response. I wrote it for this very exact interface spec. Keyboard and
mouse fly thru navigation.

You're posting from a windows machine. Is your development target
windows only?

-Rick


airy.jiang@gmail.com wrote:
> Hi,everyone!I'm come back again.
> Thanks for David and Michel's help.I've solved many problem now.Lately
> I'll release a demo of our new achieve,it's very interesting.But now I
> still got a question.
> The widget_draw object can respose the keyboard events as we know,but
> I've found it just can catch only one key pressdown at a same time.I
> pressed two key like "a" and "w" at the same time,which represents the
> moving to the westnorth (like the first person angle game
> CounterStrike and Quake3),but the IDL just record the key "a".If I
> wanna move to the westnorth that using the keyboard in my program,I
> just can press "a" to the west first,then press "w" to the north.
> Is there a nice way to solve this problem?Waiting for your
> participate!!!
> A strage question again?^_*
>
Re: ^_^Keyboard Events question! [message #54732 is a reply to message #54731] Fri, 06 July 2007 07:37 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 5, 11:53 pm, airy.ji...@gmail.com wrote:
> Hi,everyone!I'm come back again.
> Thanks for David and Michel's help.I've solved many problem now.Lately
> I'll release a demo of our new achieve,it's very interesting.But now I
> still got a question.
> The widget_draw object can respose the keyboard events as we know,but
> I've found it just can catch only one key pressdown at a same time.I
> pressed two key like "a" and "w" at the same time,which represents the
> moving to the westnorth (like the first person angle game
> CounterStrike and Quake3),but the IDL just record the key "a".If I
> wanna move to the westnorth that using the keyboard in my program,I
> just can press "a" to the west first,then press "w" to the north.
> Is there a nice way to solve this problem?Waiting for your
> participate!!!
> A strage question again?^_*

Use 'q' ?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 6.1: X11 forward display. Mouse click not responsive on remote session.
Next Topic: 3D Registration

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:40:01 PDT 2025

Total time taken to generate the page: 0.00628 seconds