mirror of https://github.com/stella-emu/stella.git
Minor fixes for suggestions from clang-tidy.
This commit is contained in:
parent
9659a0a9af
commit
868b2fd7cb
|
@ -79,16 +79,11 @@ class PhysicalJoystickHandler
|
|||
void setDefaultMapping(Event::Type event, EventMode mode);
|
||||
|
||||
/** define mappings for current controllers */
|
||||
void defineControllerMappings(const Controller::Type type, Controller::Jack port,
|
||||
void defineControllerMappings(const Controller::Type type, Controller::Jack port,
|
||||
const Properties& properties);
|
||||
/** enable mappings for emulation mode */
|
||||
void enableEmulationMappings();
|
||||
|
||||
/** return event mode for given property */
|
||||
EventMode getMode(const Properties& properties, const PropType propType);
|
||||
/** return event mode for given controller type */
|
||||
EventMode getMode(const Controller::Type type);
|
||||
|
||||
void eraseMapping(Event::Type event, EventMode mode);
|
||||
void saveMapping();
|
||||
string getMappingDesc(Event::Type, EventMode mode) const;
|
||||
|
@ -185,6 +180,11 @@ class PhysicalJoystickHandler
|
|||
EventMode mode = EventMode::kEmulationMode,
|
||||
bool updateDefaults = false);
|
||||
|
||||
/** return event mode for given property */
|
||||
static EventMode getMode(const Properties& properties, const PropType propType);
|
||||
/** return event mode for given controller type */
|
||||
static EventMode getMode(const Controller::Type type);
|
||||
|
||||
/** returns the event's controller mode */
|
||||
static EventMode getEventMode(const Event::Type event, const EventMode mode);
|
||||
/** Checks event type. */
|
||||
|
|
|
@ -63,7 +63,7 @@ void CartridgeGL::install(System& system)
|
|||
{
|
||||
CartridgeEnhanced::install(system);
|
||||
|
||||
System::PageAccess access(this, System::PageAccessType::READ);
|
||||
const System::PageAccess access(this, System::PageAccessType::READ);
|
||||
|
||||
mySystem->setPageAccess(0x480, access);
|
||||
mySystem->setPageAccess(0x580, access);
|
||||
|
|
Loading…
Reference in New Issue