Rename controller_base::keyboard_scroll.
Rename to controller_base::apply_keyboard_scroll to avoid confusion with hotkey_handler::keyboard_scroll. keyboard_scroll handles the hotkey press and invokes apply_keyboard_scroll on the controller.
This commit is contained in:
parent
a58e595705
commit
4e3d616336
4 changed files with 4 additions and 4 deletions
|
@ -347,7 +347,7 @@ const config& controller_base::get_theme(const config& game_config, std::string
|
|||
return empty;
|
||||
}
|
||||
|
||||
void controller_base::keyboard_scroll(int x, int y)
|
||||
void controller_base::apply_keyboard_scroll(int x, int y)
|
||||
{
|
||||
if (have_keyboard_focus()) {
|
||||
// clamp between -1 and 1 so key repeats don't accelerate scrolling
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
|
||||
static const config &get_theme(const config& game_config, std::string theme_name);
|
||||
|
||||
void keyboard_scroll(int x, int y);
|
||||
void apply_keyboard_scroll(int x, int y);
|
||||
protected:
|
||||
virtual bool is_browsing() const
|
||||
{ return false; }
|
||||
|
|
|
@ -1368,7 +1368,7 @@ hotkey::command_executor * editor_controller::get_hotkey_command_executor() {
|
|||
|
||||
void editor_controller::keyboard_scroll(int x, int y)
|
||||
{
|
||||
controller_base::keyboard_scroll(x, y);
|
||||
controller_base::apply_keyboard_scroll(x, y);
|
||||
}
|
||||
|
||||
} //end namespace editor
|
||||
|
|
|
@ -220,7 +220,7 @@ void play_controller::hotkey_handler::toggle_accelerated_speed()
|
|||
|
||||
void play_controller::hotkey_handler::keyboard_scroll(int x, int y)
|
||||
{
|
||||
play_controller_.keyboard_scroll(x, y);
|
||||
play_controller_.apply_keyboard_scroll(x, y);
|
||||
}
|
||||
|
||||
bool play_controller::hotkey_handler::execute_command(const hotkey::hotkey_command& cmd, int index, bool press)
|
||||
|
|
Loading…
Add table
Reference in a new issue