Features.
svn-id: r13246
This commit is contained in:
parent
882b0a094a
commit
86df1e876a
2 changed files with 50 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue