Added ping pong mode (with minor errors).

This commit is contained in:
Author glitchrain
2024-12-14 07:46:47 -08:00
committed by s.aydarov
parent 20c25767bd
commit 7861a6d207
4 changed files with 31 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ private:
{
if(_Num < 0)
{
return (_Max - _Num) % _Max;
return (_Max + _Num % _Max);
}
if(_Num >= _Max)
{
@@ -133,6 +133,7 @@ private:
return (upButtonHold - downButtonHold);
}
//TODO: FIX BUG HERE: display is not updated.
void ProcessRun()
{
ProcessChangeMode();