Need better way to input from keyboard



I am working on an application which requires the user to press and
hold different keys on the keyboard in order to control the movements
of a model on the screen in real-time. This is under an MS Windows
operating system.

There are two problems. The first is the "pause" one receives when
pressing a key before the key starts its "repeat" (to see what I mean,
just bring up any text editor, then press and hold a key). That pause
causes an irritating hesitation in the movements of the model when a
key is pressed. I understand that I can go into a Windows setting and
shrink down that pause time, but there is still a small pause even on
the minimum setting. I tried writing a simple C program using
getchar(), thinking I could call it as a DLL from Smalltalk, but it
behaved the same, which tells me that getchar() is not bypassing
Windows.

The second problem is that I need to be able to properly detect when
multiple keys are pressed and held down, i.e. the model should move up
AND to the right if the up arrow and right arrow are pressed and held
simultaneously. This also seems problematic.

Does anyone have a solution for these problems? I'm game for anything,
whether it's some low-level OS-bypassing system call from C, or a
Smalltalk way to set up keyboard input (preferable), or whatever.

I'm currently using VisualWorks.

Thanks.

.



Relevant Pages

  • expanding windows box with keyboard
    ... how can i expand the windows box with the keyboard? ... windowslogo+ up arrow but that doesnt work ...
    (microsoft.public.windows.vista.general)
  • using the keyboard
    ... which key on the keyboard is the pound sign when using windows xp ... professional because when i press the arrow and 3 button it is coming up with ...
    (microsoft.public.word.newusers)
  • Re: Opera pain
    ... Using Windows ... you can drag the image file to any drive or folder you desire.. ... I'm a operation efficiency nerd. ... hardware is just keyboard and mouse. ...
    (comp.infosystems.www.authoring.html)
  • Re: OpenVMS, eXursion, Laptop
    ... navigation in a Firefox window and fat-fingered a Tab (to the Send ... button) and then space bar. ... While superior to Windows in many ways, ... biggest pet peeve is keyboard navigation. ...
    (comp.os.vms)
  • Re: The Beep Function.
    ... If Ctrl Alt Delete did work then the keyboard was not frozen. ... and there are a lot more experienced Windows administrators than Apple ones ... alt-ctrl-del would sometimes work to reboot the PC. ... then soon after that a very expensive, to me, Mac iBook G4. ...
    (comp.lang.basic.visual.misc)