Re: ^_^Keyboard Events question! [message #54726] |
Sat, 07 July 2007 20:03 |
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  |
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  |
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' ?
|
|
|