|
From: Steve A. <ste...@us...> - 2009-05-02 21:27:42
|
Update of /cvsroot/stella/stella/src/emucore In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10071/src/emucore Modified Files: Paddles.cxx Log Message: Increased the base resistance a little in the Paddle class, to allow all cards to be selected in game 4 of Casino. I don't really like the current implementation of calculating values for Controller pins 5 & 9, as there are too many 'magic numbers' without any definition. For now, it seems to work, but there's no guarantee that another paddle game won't pop up and invalidate it again. Perhaps if I find time, this can be documented much better. Bumped version number. Index: Paddles.cxx =================================================================== RCS file: /cvsroot/stella/stella/src/emucore/Paddles.cxx,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Paddles.cxx 1 Jan 2009 18:13:36 -0000 1.16 --- Paddles.cxx 2 May 2009 21:27:32 -0000 1.17 *************** *** 300,305 **** } ! myAnalogPinValue[Five] = (Int32)(1000000 * (myCharge[1] / 255.0)); ! myAnalogPinValue[Nine] = (Int32)(1000000 * (myCharge[0] / 255.0)); } --- 300,305 ---- } ! myAnalogPinValue[Five] = (Int32)(1100000 * (myCharge[1] / 255.0)); ! myAnalogPinValue[Nine] = (Int32)(1100000 * (myCharge[0] / 255.0)); } |