diff options
author | angelosa <salese_corp_ltd@email.it> | 2017-10-17 04:41:52 +0200 |
---|---|---|
committer | angelosa <salese_corp_ltd@email.it> | 2017-10-17 05:39:40 +0200 |
commit | 798035cde30c3cd04cd258891234fd37fc287922 (patch) | |
tree | 27e4686c33f6b1c015d8f215eb52ef1d4be48976 | |
parent | 9e8160cf7ed8e822143e29b6e470f4daf78a3860 (diff) |
Proposed fix for MT #06154 (nw)
-rw-r--r-- | src/emu/ioport.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp index 4ee034a10d0..3e515c08079 100644 --- a/src/emu/ioport.cpp +++ b/src/emu/ioport.cpp @@ -3388,7 +3388,13 @@ analog_field::analog_field(ioport_field &field) // relative controls reverse from 1 past their max range if (m_wraps) - m_reverse_val -= INPUT_RELATIVE_PER_PIXEL; + { + // wrap by 1 in positional input type + if(field.type() == IPT_POSITIONAL || field.type() == IPT_POSITIONAL_V) + m_reverse_val --; + else + m_reverse_val -= INPUT_RELATIVE_PER_PIXEL; + } } } |