update 0.9.0 goodies
This commit is contained in:
parent
d99a5c7185
commit
e401b93e22
11 changed files with 514 additions and 93 deletions
13
sae/cia.js
13
sae/cia.js
|
|
@ -793,8 +793,7 @@ function SAEO_CIA() {
|
|||
|
||||
function check_led() {
|
||||
var v = ciaapra;
|
||||
|
||||
v |= ~ciaadra; /* output is high when pin"s direction is input */
|
||||
v |= ~ciaadra; /* output is high when pin's direction is input */
|
||||
var led2 = (v & 2) ? 0 : 1;
|
||||
if (led2 != led) {
|
||||
calc_led(led);
|
||||
|
|
@ -824,12 +823,18 @@ function SAEO_CIA() {
|
|||
if (SAEV_config.ports[0].type == SAEC_Config_Ports_Type_Mouse) {
|
||||
if (!SAER.input.mouse.button[0]) tmp |= 0x40;
|
||||
if (dra & 0x40) tmp = (tmp & ~0x40) | (pra & 0x40);
|
||||
} else if (SAEV_config.ports[0].type == SAEC_Config_Ports_Type_Joy0) {
|
||||
} else if (
|
||||
SAEV_config.ports[0].type == SAEC_Config_Ports_Type_Joy ||
|
||||
SAEV_config.ports[0].type == SAEC_Config_Ports_Type_JoyEmu
|
||||
) {
|
||||
if (!SAER.input.joystick[0].button[0]) tmp |= 0x40;
|
||||
if (dra & 0x40) tmp = (tmp & ~0x40) | (pra & 0x40);
|
||||
} else tmp |= 0x40;
|
||||
|
||||
if (SAEV_config.ports[1].type == SAEC_Config_Ports_Type_Joy1) {
|
||||
if (
|
||||
SAEV_config.ports[1].type == SAEC_Config_Ports_Type_Joy ||
|
||||
SAEV_config.ports[1].type == SAEC_Config_Ports_Type_JoyEmu
|
||||
) {
|
||||
if (!SAER.input.joystick[1].button[0]) tmp |= 0x80;
|
||||
if (dra & 0x80) tmp = (tmp & ~0x80) | (pra & 0x80);
|
||||
} else tmp |= 0x80;
|
||||
|
|
|
|||
Loading…
Reference in a new issue