diff options
author | Cameron Cawley | 2019-11-03 22:33:06 +0000 |
---|---|---|
committer | David Turner | 2019-11-30 20:50:27 +0000 |
commit | 00fecbb6e638a943c6f45cca84986ba38803ad91 (patch) | |
tree | f988c3635c90ef6aa9be0372a34bca310358dad1 /backends/platform/gph | |
parent | 54e6cf4cda16cfbb4ea5e3b728188fb837468279 (diff) | |
download | scummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.tar.gz scummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.tar.bz2 scummvm-rg350-00fecbb6e638a943c6f45cca84986ba38803ad91.zip |
GPH/OPENPANDORA: Move ToggleTapMode() into the event manager
Diffstat (limited to 'backends/platform/gph')
-rw-r--r-- | backends/platform/gph/gph-hw.cpp | 25 | ||||
-rw-r--r-- | backends/platform/gph/gph-hw.h | 8 |
2 files changed, 0 insertions, 33 deletions
diff --git a/backends/platform/gph/gph-hw.cpp b/backends/platform/gph/gph-hw.cpp index 7b004f1739..74e3cc39d3 100644 --- a/backends/platform/gph/gph-hw.cpp +++ b/backends/platform/gph/gph-hw.cpp @@ -82,28 +82,3 @@ void mixerMoveVolume(int direction) { } } /* namespace WIZ_HW */ - -namespace GPH { - -enum { - /* Touchscreen TapMode */ - TAPMODE_LEFT = 0, - TAPMODE_RIGHT = 1, - TAPMODE_HOVER = 2 -}; - -int tapmodeLevel = TAPMODE_LEFT; - -void ToggleTapMode() { - if (tapmodeLevel == TAPMODE_LEFT) { - tapmodeLevel = TAPMODE_RIGHT; - } else if (tapmodeLevel == TAPMODE_RIGHT) { - tapmodeLevel = TAPMODE_HOVER; - } else if (tapmodeLevel == TAPMODE_HOVER) { - tapmodeLevel = TAPMODE_LEFT; - } else { - tapmodeLevel = TAPMODE_LEFT; - } -} - -} /* namespace GPH */ diff --git a/backends/platform/gph/gph-hw.h b/backends/platform/gph/gph-hw.h index c6d0094cf1..116af2fff4 100644 --- a/backends/platform/gph/gph-hw.h +++ b/backends/platform/gph/gph-hw.h @@ -38,12 +38,4 @@ extern void mixerMoveVolume(int); } /* namespace WIZ_HW */ -namespace GPH { - -extern int tapmodeLevel; - -extern void ToggleTapMode(); - -} /* namespace GPH */ - #endif //GPH_HW_H |