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:
stephena 2012-01-06 01:22:43 +00:00
parent fcf3aed924
commit 6453a1ac14
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}