|
Nestopia Core API | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base
|
+--Nes::Api::DipSwitches
DIP switches interface.
Constructor Summary | |
DipSwitches( T& instance )
Interface constructor. |
Method Summary | |
bool |
CanModify() const
Checks if the DIP switches can be changed at this time. |
const char* |
GetDipName( uint dip ) const
Returns the name of a DIP switch. |
int |
GetValue( uint dip ) const
Returns the current DIP switch value. |
const char* |
GetValueName( uint dip, uint value ) const
Returns the name of a DIP switch value. |
uint |
NumDips() const
Returns the number of available DIP switches. |
uint |
NumValues( uint dip ) const
Returns the number of values that can be chosen for a DIP switch. |
Result |
SetValue( uint dip, uint value )
Sets a DIP switch value. |
Constructor Detail |
public DipSwitches( T& instance );
instance
- emulator instanceMethod Detail |
public bool CanModify() const throw();
public const char* GetDipName( uint dip ) const throw();
dip
- DIP switch IDpublic int GetValue( uint dip ) const throw();
dip
- DIP switch IDpublic const char* GetValueName( uint dip, uint value ) const throw();
dip
- DIP switch ID
value
- value IDpublic uint NumDips() const throw();
public uint NumValues( uint dip ) const throw();
dip
- DIP switch IDpublic Result SetValue( uint dip, uint value ) throw();
dip
- DIP switch ID
value
- value ID
|
Nestopia Core API | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |