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

Home » Public Forums » archive » Two Questions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Two questions [message #33294 is a reply to message #4824] Mon, 16 December 2002 14:24 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Pavel A. Romashkin" <pavel_romashkin@hotmail.com> wrote

> Evgeny Turchin wrote:
>>
>> Question #2.
>> What IDL functions and procedures does one need to write a keyboard
handler
>> which could handle events from
>> function keys and key combinations ? The keyboard handler is supposed
to be
>> used in program with widget interface under
>> MS Windows ?
>
> Take a look here:
>
http://groups.google.com/groups?hl=en&lr=&ie=ISO-885 9-1&q=text+widget+trick&
btnG=Google+Search&meta=group%3Dcomp.lang.idl-pvwave
> HTH,
> Pavel


Better yet, take a look here:

http://www.acoustics.washington.edu/~towler/

(the trailing slash is *required*)

download the directInput.dlm package which is the successor to winInput.dlm
referenced above by Pavel. This dlm is based on directX, is windows only,
and provides an interface to poll keyboard, joystick and mouse states. I
say poll, you still need to run this in a timer loop. It doesn't buffer
input either so the event loop needs to be relatively quick. Usually this
isn't a problem. I provide a simple example.

Also, 5.6 has some new keyboard events for draw widgets which may or may not
work for you.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Two questions
Next Topic: Complex Rebin

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

Current Time: Sat Oct 11 05:26:18 PDT 2025

Total time taken to generate the page: 0.88058 seconds