Re: [cc65] Question on 1351 mouse

From: <silverdr1wfmh.org.pl>
Date: 2010-02-03 09:37:04
On 2010-02-03, at 08:14, Oliver Schmidt wrote:

> Hi,
> 
>> Which means that a joystick mouse will cause similar problems. Maybe the best
>> workaround for the application is indeed to clear the keyboard buffer after
>> mouse actions?
> 
> Maybe I don't understand this proposal correctly but it seems to me
> that it will cause loosing keyborad strokes. When the user interacts
> with the program it can't know when the user uses the keyboard and
> when he uses the mouse. So I don't see "one thing after the other".
> Below are some parts from the relevant code. Where could a keyboard
> buffer clearing be inserted?

How is it there? Is the KERNAL IRQ keyscanner being used all the time there. If so, then clearing the buffer every time a click (or spacebar pressed, which will look to the machine the same like the mouse click), unless focus is already inside the text gadget, might help?

Again - I don't know how the code is constructed there so it might not be feasible  but the proven approach was not to use the KERNAL keyboard scanner while focus is not in any of the text entry related gadgets.

-- 
SD!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Feb 3 09:37:13 2010

This archive was generated by hypermail 2.1.8 : 2010-02-03 09:37:15 CET