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
|
@ -84,11 +84,6 @@ class PhysicalJoystickHandler
|
||||||
/** enable mappings for emulation mode */
|
/** enable mappings for emulation mode */
|
||||||
void enableEmulationMappings();
|
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 eraseMapping(Event::Type event, EventMode mode);
|
||||||
void saveMapping();
|
void saveMapping();
|
||||||
string getMappingDesc(Event::Type, EventMode mode) const;
|
string getMappingDesc(Event::Type, EventMode mode) const;
|
||||||
|
@ -185,6 +180,11 @@ class PhysicalJoystickHandler
|
||||||
EventMode mode = EventMode::kEmulationMode,
|
EventMode mode = EventMode::kEmulationMode,
|
||||||
bool updateDefaults = false);
|
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 */
|
/** returns the event's controller mode */
|
||||||
static EventMode getEventMode(const Event::Type event, const EventMode mode);
|
static EventMode getEventMode(const Event::Type event, const EventMode mode);
|
||||||
/** Checks event type. */
|
/** Checks event type. */
|
||||||
|
|
|
@ -63,7 +63,7 @@ void CartridgeGL::install(System& system)
|
||||||
{
|
{
|
||||||
CartridgeEnhanced::install(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(0x480, access);
|
||||||
mySystem->setPageAccess(0x580, access);
|
mySystem->setPageAccess(0x580, access);
|
||||||
|
|
Loading…
Reference in New Issue