Minor documentation/commenting update for Paddle class.

This commit is contained in:
Stephen Anthony 2017-04-08 00:29:35 -02:30
parent 7b8d579360
commit 07f605d8be
2 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,7 @@
files before starting another instance of the same ROM, when the ROM
was opened in the ROM launcher.
* Various improvements to the debugger prompt:
* Various improvements to the debugger and command prompt:
- The 'cls' command now only clears the screen, not the history
- The 'help' command now accepts other commands, and gives extra
information about the command (ie, 'help breakif' prints extended
@ -48,7 +48,9 @@
and 'trapwrite'
- Command completion now works with internal functions and pseudo-ops
(basically, anything starting with the '_' character)
- In general, input error checking is much more strictly enforced.
- In general, input error checking is much more strictly enforced
- Read-only UI items now have a different background color, to
clearly indicate if an item can be modified.
* Mouse grabbing is now enabled in windowed mode only when the ROM is
using a virtual analog controller (paddles, trakball, etc).

View File

@ -26,7 +26,9 @@ Paddles::Paddles(Jack jack, const Event& event, const System& system,
myMPaddleIDX(-1),
myMPaddleIDY(-1)
{
myAnalogPinValue[Nine] = myAnalogPinValue[Five] = 0;
// We must start with minimum resistance; see commit
// 38b452e1a047a0dca38c5bcce7c271d40f76736e for more information
myAnalogPinValue[Nine] = myAnalogPinValue[Five] = minimumResistance;
// The following logic reflects that mapping paddles to different
// devices can be extremely complex