Mail Archives: djgpp/1993/09/10/09:46:18
David J. Camp writes:
> >> What is really needed is an INT-09 handler in GO32 which reads the modifiers
> >> _when the key is pressed_ and buffers keypress events as (say) keycode +
> >> modifier (+ timestamp ?) for the application (ditto for mouse events).
>
> I doubt that a timestamp would be much use, since no existing software
> takes advantage of it, and C has no contruct for reading it.
Just because no existing software takes advantage of it doesn't mean it
won't be useful in the future!
> I recommend that standard vt100 character sequences be sent, instead
> of IBMPC sequences. That way the same handling can be applied to
> external devices as the console. -David-
I think the current event library has it about right - the low level
event handler just returns IBMPC sequences. If you want vt100 sequences
(or indeed X keysyms) then that translation should be done at the next
level up, not in the interrupt handler. Of course the code could be put
into a library for everyone to use 8-)
Chris.
--
Dr Chris Boucher Tel: (+44 703) 592300
Signal Processing and Control Group Fax: (+44 703) 593033
Institute of Sound and Vibration Research Email: ccb AT soton DOT ac DOT uk
University of Southampton, Southampton S09 5NH, England
- Raw text -