Re: [cc65] Problem with kbhit()?

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2002-05-17 14:59:08


> 
> On Wednesday 15 May 2002 10:16, Stephan Lesch wrote:
> 
> > I'm using Vice 1.4 under Linux, and cc65 2.8.
> 
> There's a little (annoying) bug in VICE. Load it (x64), move the 
> mousepointer out of the VICE window and hit space - the emulator will 
> repeat this one keypress until you move the mousepointer back into the 
> emulators window.

Sorry, I can't reproduce the bug.
> 
> Maybe that's related to your problem. Make sure that the pointer is in 
> the window when you start the program.

It doesn't make a difference.

I've replaced the keyboard check in the Nachtmusik (if a key was pressed,
check if it was 'd'; if yes, enter debugger, if no, just exit) with
puts statements (if kbhit() puts("kbhit: true") else puts("kbhit:false"))
kbhit() is true in the first moment after the title screen has been printed,
after half a second or so it turns false.
So you might think there's a keypress "stuck" in the keyboard buffer, but
then, a if (kbhit()) cgetc() should remove it from the buffer. I've put such
a statement between the initialization part and the beginning of the
playloop, and it seems to have no effect.

I've now tried the Nachtmusik on Vice 1.4, ccs64 (some version...) and
a real 64. It works on the real 64, but on both emulators, it exits after
showing the title screen.

Greets,
Stephan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-17 15:00:31 CEST