aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs b/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs
index 7dc88dd8d..0bbba03ad 100644
--- a/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs
+++ b/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs
@@ -314,7 +314,14 @@ namespace Tango.Touch.Keyboard
if (control != null)
{
- control.Value -= 1;
+ if (control.Step > 0)
+ {
+ control.Value -= control.Step;
+ }
+ else
+ {
+ control.Value -= 1;
+ }
}
}
}
@@ -329,7 +336,14 @@ namespace Tango.Touch.Keyboard
if (control != null)
{
- control.Value += 1;
+ if (control.Step > 0)
+ {
+ control.Value += control.Step;
+ }
+ else
+ {
+ control.Value += 1;
+ }
}
}
}