mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-27 09:56:08 +00:00
c_mygetch is strictly INTERFACE_CLASSIC
This commit is contained in:
parent
6a453c3973
commit
a796a9f14c
@ -439,6 +439,7 @@ int c_rawkey()
|
|||||||
return last_scancode;
|
return last_scancode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef INTERFACE_CLASSIC
|
||||||
int c_mygetch(int block)
|
int c_mygetch(int block)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
@ -458,7 +459,6 @@ int c_mygetch(int block)
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef INTERFACE_CLASSIC
|
|
||||||
void c_keys_set_key(int key)
|
void c_keys_set_key(int key)
|
||||||
{
|
{
|
||||||
next_key = key;
|
next_key = key;
|
||||||
|
@ -1115,9 +1115,11 @@ void fb_sha1() {
|
|||||||
LOG("SHA1 : %s", buf);
|
LOG("SHA1 : %s", buf);
|
||||||
|
|
||||||
int ch = -1;
|
int ch = -1;
|
||||||
|
#ifdef INTERFACE_CLASSIC
|
||||||
while ((ch = c_mygetch(1)) == -1) {
|
while ((ch = c_mygetch(1)) == -1) {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
clear_debugger_screen();
|
clear_debugger_screen();
|
||||||
|
|
||||||
sprintf(second_buf[num_buffer_lines++], "%s", buf);
|
sprintf(second_buf[num_buffer_lines++], "%s", buf);
|
||||||
@ -1172,7 +1174,7 @@ static int begin_cpu_stepping() {
|
|||||||
#warning FIXME TODO : this is mis-named now ... GLVideo pushes sync state so we do not need to force poll ... but we need this to type the testing strings ... should refactor to leverage a common codepath, preferablly using the 'typing' mechanism here...
|
#warning FIXME TODO : this is mis-named now ... GLVideo pushes sync state so we do not need to force poll ... but we need this to type the testing strings ... should refactor to leverage a common codepath, preferablly using the 'typing' mechanism here...
|
||||||
extern void testing_video_sync();
|
extern void testing_video_sync();
|
||||||
testing_video_sync();
|
testing_video_sync();
|
||||||
#else
|
#elif defined(INTERFACE_CLASSIC)
|
||||||
if ((ch = c_mygetch(0)) != -1) {
|
if ((ch = c_mygetch(0)) != -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user