Fixed bug in reading paddle input from Stelladaptor; I was a little too

eager in code cleanup from 4.6.1.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3229 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-10-28 15:27:34 +00:00
parent 23cfae3025
commit 3517259982
2 changed files with 12 additions and 4 deletions

View File

@ -12,6 +12,16 @@
Release History Release History
=========================================================================== ===========================================================================
4.6.6 to 4.6.7: (October xx, 2015)
* Fixed bug introduced in version 4.6.5, whereby real paddles plugged
into a Stelladaptor/2600-daptor weren't working correctly.
* Fixed small logic error in 'MDM' bankswitching scheme.
-Have fun!
4.6.5 to 4.6.6: (October 11, 2015) 4.6.5 to 4.6.6: (October 11, 2015)
* Added 'Alt/Cmd + j' shortcut key and 'tv.jitter' commandline argument * Added 'Alt/Cmd + j' shortcut key and 'tv.jitter' commandline argument
@ -21,8 +31,6 @@
* Fixed bug in 'MDM' bankswitch scheme; bankswitching wasn't being * Fixed bug in 'MDM' bankswitch scheme; bankswitching wasn't being
done under certain circumstances. done under certain circumstances.
-Have fun!
4.6.1 to 4.6.5: (September 26, 2015) 4.6.1 to 4.6.5: (September 26, 2015)

View File

@ -269,12 +269,12 @@ void Paddles::update()
int sa_yaxis = myEvent.get(myP1AxisValue); int sa_yaxis = myEvent.get(myP1AxisValue);
if(abs(myLastAxisX - sa_xaxis) > 10) if(abs(myLastAxisX - sa_xaxis) > 10)
{ {
myAnalogPinValue[Nine] = Int32(1400000 * (32767 - Int16(sa_xaxis)) / 65536.0); myAnalogPinValue[Nine] = Int32(1400000 * ((32767 - Int16(sa_xaxis)) / 65536.0));
sa_changed = true; sa_changed = true;
} }
if(abs(myLastAxisY - sa_yaxis) > 10) if(abs(myLastAxisY - sa_yaxis) > 10)
{ {
myAnalogPinValue[Five] = Int32(1400000 * (32767 - Int16(sa_yaxis)) / 65536.0); myAnalogPinValue[Five] = Int32(1400000 * ((32767 - Int16(sa_yaxis)) / 65536.0));
sa_changed = true; sa_changed = true;
} }
myLastAxisX = sa_xaxis; myLastAxisX = sa_xaxis;