Filter keyboard rows grounded by joystick buttons before processing actions, preventing right fire from acting as A/D/E and undoing its release rotation. Arm X and Y independently so an uncentered vertical axis cannot block steering. Reproduce both defects in host regressions, retain ordinary CMOC input APIs, and update official project membership. Compact unchanged display data and make render profiling optional to preserve the original memory and stack bounds. Deliver QUADPSL02.DSK with fresh scores. Retire the old artifact from tracking while leaving the loaded local disk untouched. Host suites, official Release build and MC6809/512 KB keyboard/audio smoke checks pass. Actual joystick-port confirmation and the reported normal-window buzz remain pending.
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
#ifndef QUAD_TEST_COCO_H
|
|
#define QUAD_TEST_COCO_H
|
|
#include <string.h>
|
|
typedef unsigned char byte;
|
|
typedef unsigned short word;
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
extern byte isCoCo3;
|
|
void rgb(void);
|
|
void paletteRGB(byte slot,byte r,byte g,byte b);
|
|
byte hscreen(byte mode);
|
|
void enableInterrupts(void);
|
|
void resetPalette(byte reset);
|
|
void width(byte columns);
|
|
void setHighSpeed(byte speed);
|
|
word getTimer(void);
|
|
byte hset(word x,word y,byte color);
|
|
|
|
/* Public coco.h key coordinates used by the real keyboard adapter. */
|
|
enum {
|
|
KEY_PROBE_LEFT=0xDF, KEY_BIT_LEFT=0x08,
|
|
KEY_PROBE_RIGHT=0xBF, KEY_BIT_RIGHT=0x08,
|
|
KEY_PROBE_UP=0xF7, KEY_BIT_UP=0x08,
|
|
KEY_PROBE_DOWN=0xEF, KEY_BIT_DOWN=0x08,
|
|
KEY_PROBE_ENTER=0xFE, KEY_BIT_ENTER=0x40,
|
|
KEY_PROBE_BREAK=0xFB, KEY_BIT_BREAK=0x40,
|
|
KEY_PROBE_A=0xFD, KEY_BIT_A=0x01,
|
|
KEY_PROBE_D=0xEF, KEY_BIT_D=0x01,
|
|
KEY_PROBE_W=0x7F, KEY_BIT_W=0x04,
|
|
KEY_PROBE_S=0xEF, KEY_BIT_S=0x04,
|
|
KEY_PROBE_Q=0xFD, KEY_BIT_Q=0x04,
|
|
KEY_PROBE_E=0xDF, KEY_BIT_E=0x01,
|
|
KEY_PROBE_SPACE=0x7F, KEY_BIT_SPACE=0x08,
|
|
KEY_PROBE_H=0xFE, KEY_BIT_H=0x02,
|
|
KEY_PROBE_P=0xFE, KEY_BIT_P=0x04
|
|
};
|
|
byte isKeyPressed(byte probe,byte bit);
|
|
#endif
|