aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMarcus Comstedt2004-03-13 14:00:44 +0000
committerMarcus Comstedt2004-03-13 14:00:44 +0000
commit86df1e876ade4720d5c8ab53f8b54ca26ab7a26d (patch)
tree587a3780d1cf63dcd78e4188a4cd63708d639c06 /backends/dc
parent882b0a094a050e2fa8c357d0bd81d155315d66ba (diff)
downloadscummvm-rg350-86df1e876ade4720d5c8ab53f8b54ca26ab7a26d.tar.gz
scummvm-rg350-86df1e876ade4720d5c8ab53f8b54ca26ab7a26d.tar.bz2
scummvm-rg350-86df1e876ade4720d5c8ab53f8b54ca26ab7a26d.zip
Features.
svn-id: r13246
Diffstat (limited to 'backends/dc')
-rw-r--r--backends/dc/dc.h9
-rw-r--r--backends/dc/dcmain.cpp41
2 files changed, 50 insertions, 0 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h
index 1425c5759b..8eafdc1a76 100644
--- a/backends/dc/dc.h
+++ b/backends/dc/dc.h
@@ -31,6 +31,15 @@ class OSystem_Dreamcast : public OSystem {
OSystem_Dreamcast();
+ // Determine whether the backend supports the specified feature.
+ bool hasFeature(Feature f);
+
+ // En-/disable the specified feature.
+ void setFeatureState(Feature f, bool enable);
+
+ // Query the state of the specified feature. For example, test whether
+ bool getFeatureState(Feature f);
+
// Retrieve a list of all graphics modes supported by this backend.
const GraphicsMode *getSupportedGraphicsModes() const;
diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp
index 82ab1b666b..26a964dcf4 100644
--- a/backends/dc/dcmain.cpp
+++ b/backends/dc/dcmain.cpp
@@ -143,6 +143,47 @@ void OSystem_Dreamcast::deleteMutex(MutexRef mutex)
}
+/* Features */
+bool OSystem_Dreamcast::hasFeature(Feature f)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ case kFeatureVirtualKeyboard:
+ return true;
+ default:
+ return false;
+ }
+}
+
+void OSystem_Dreamcast::setFeatureState(Feature f, bool enable)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ /* FIXME */
+ break;
+ case kFeatureVirtualKeyboard:
+ /* FIXME */
+ break;
+ default:
+ break;
+ }
+}
+
+bool OSystem_Dreamcast::getFeatureState(Feature f)
+{
+ switch(f) {
+ case kFeatureAspectRatioCorrection:
+ /* FIXME */
+ return false;
+ case kFeatureVirtualKeyboard:
+ /* FIXME */
+ return false;
+ default:
+ return false;
+ }
+}
+
+
void dc_init_hardware()
{
#ifndef NOSERIAL