mirror of https://github.com/stella-emu/stella.git
Fixed bug in Controller::read; AtariVox and SaveKey weren't working.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2336 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
fcf3aed924
commit
6453a1ac14
|
@ -95,10 +95,10 @@ Controller::~Controller()
|
|||
uInt8 Controller::read()
|
||||
{
|
||||
uInt8 ioport = 0x00;
|
||||
if(myDigitalPinState[One]) ioport |= 0x01;
|
||||
if(myDigitalPinState[Two]) ioport |= 0x02;
|
||||
if(myDigitalPinState[Three]) ioport |= 0x04;
|
||||
if(myDigitalPinState[Four]) ioport |= 0x08;
|
||||
if(read(One)) ioport |= 0x01;
|
||||
if(read(Two)) ioport |= 0x02;
|
||||
if(read(Three)) ioport |= 0x04;
|
||||
if(read(Four)) ioport |= 0x08;
|
||||
|
||||
return myJack == Left ? (ioport << 4) : ioport;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue