mirror of https://github.com/stella-emu/stella.git
Fix compile warnings in gcc/clang.
This commit is contained in:
parent
512f4ec43c
commit
45672f3ee2
|
@ -148,7 +148,7 @@ void GlobalKeyHandler::setDirectSetting(const Setting setting)
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
const GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
|
GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
|
||||||
{
|
{
|
||||||
if(mySetting >= Setting::START_DEBUG_ADJ && mySetting <= Setting::END_DEBUG_ADJ)
|
if(mySetting >= Setting::START_DEBUG_ADJ && mySetting <= Setting::END_DEBUG_ADJ)
|
||||||
return Group::DEBUG;
|
return Group::DEBUG;
|
||||||
|
@ -315,7 +315,7 @@ const GlobalKeyHandler::Function GlobalKeyHandler::cycleSetting(int direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
const GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
|
GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
|
||||||
{
|
{
|
||||||
// Notes:
|
// Notes:
|
||||||
// - all setting methods MUST always display a message
|
// - all setting methods MUST always display a message
|
||||||
|
|
|
@ -161,11 +161,11 @@ class GlobalKeyHandler
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Get group based on given setting
|
// Get group based on given setting
|
||||||
const Group getGroup() const;
|
Group getGroup() const;
|
||||||
// Cycle settings using given direction (can be 0)
|
// Cycle settings using given direction (can be 0)
|
||||||
const Function cycleSetting(int direction);
|
const Function cycleSetting(int direction);
|
||||||
// Get adjustment function and if it is repeated
|
// Get adjustment function and if it is repeated
|
||||||
const SettingData getSettingData(const Setting setting) const;
|
SettingData getSettingData(const Setting setting) const;
|
||||||
|
|
||||||
PhysicalJoystickHandler& joyHandler() const { return myOSystem.eventHandler().joyHandler(); }
|
PhysicalJoystickHandler& joyHandler() const { return myOSystem.eventHandler().joyHandler(); }
|
||||||
PhysicalKeyboardHandler& keyHandler() const { return myOSystem.eventHandler().keyHandler(); }
|
PhysicalKeyboardHandler& keyHandler() const { return myOSystem.eventHandler().keyHandler(); }
|
||||||
|
|
Loading…
Reference in New Issue