mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Support for PCjr keyboard IR reciever option
Currently disabled as it Error B's
This commit is contained in:
@@ -68,6 +68,7 @@ typedef struct pcjr_s {
|
||||
uint8_t pb;
|
||||
|
||||
uint8_t option_fdc;
|
||||
uint8_t option_ir;
|
||||
|
||||
pc_timer_t send_delay_timer;
|
||||
|
||||
|
||||
@@ -667,6 +667,8 @@ kbd_read(uint16_t port, void *priv)
|
||||
ret |= (pcjr->data ? 0x40 : 0);
|
||||
if (pcjr->data)
|
||||
ret |= 0x40;
|
||||
if (pcjr->option_ir)
|
||||
ret |= 0x80; /* Keyboard cable not connected */
|
||||
break;
|
||||
|
||||
case 0xa0:
|
||||
@@ -816,6 +818,19 @@ static const device_config_t pcjr_config[] = {
|
||||
.selection = { { 0 } },
|
||||
.bios = { { 0 } }
|
||||
},
|
||||
#if 0
|
||||
{
|
||||
.name = "ir_reciever",
|
||||
.description = "Enable IR Reciever",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = NULL,
|
||||
.default_int = 0,
|
||||
.file_filter = NULL,
|
||||
.spinner = { 0 },
|
||||
.selection = { { 0 } },
|
||||
.bios = { { 0 } }
|
||||
},
|
||||
#endif
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
@@ -850,6 +865,11 @@ machine_pcjr_init(UNUSED(const machine_t *model))
|
||||
pcjr = calloc(1, sizeof(pcjr_t));
|
||||
|
||||
pcjr->option_fdc = 0;
|
||||
#if 0
|
||||
pcjr->option_ir = device_get_config_int("ir_reciever");
|
||||
#else
|
||||
pcjr->option_ir = 0;
|
||||
#endif
|
||||
|
||||
is_pcjr = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user