Make sure that the resistance read from paddle controllers is always in the physical range.

This commit is contained in:
Christian Speckner 2017-02-24 08:48:52 +01:00
parent 41ec98c6c1
commit 38b452e1a0
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ Paddles::Paddles(Jack jack, const Event& event, const System& system,
myMPaddleIDX(-1),
myMPaddleIDY(-1)
{
myAnalogPinValue[Nine] = myAnalogPinValue[Five] = 0;
// The following logic reflects that mapping paddles to different
// devices can be extremely complex
// As well, while many paddle games have horizontal movement of