aboutsummaryrefslogtreecommitdiff
path: root/src/tool/mod.rs
diff options
context:
space:
mode:
authorArne Dußin2021-01-17 13:33:04 +0100
committerArne Dußin2021-01-17 13:33:04 +0100
commit51b7747e62c189d430318c67368a5c84e50ece61 (patch)
tree328be6230d392027eb106fd963b5ec97b9034f9f /src/tool/mod.rs
parentb1179849c28e50c39ac3c94af9dda86ee24beca0 (diff)
downloadgraf_karto-51b7747e62c189d430318c67368a5c84e50ece61.tar.gz
graf_karto-51b7747e62c189d430318c67368a5c84e50ece61.zip
Input revamp to make keybindings controlable.input
Diffstat (limited to 'src/tool/mod.rs')
-rw-r--r--src/tool/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool/mod.rs b/src/tool/mod.rs
index 4130244..b3fae80 100644
--- a/src/tool/mod.rs
+++ b/src/tool/mod.rs
@@ -20,7 +20,7 @@ pub use rect_room_tool::RectRoomTool;
pub use selection_tool::SelectionTool;
pub use wall_tool::WallTool;
-use crate::button::Button;
+use crate::input::Input;
use crate::map::Map;
use crate::math::Vec2;
use crate::transform::Transform;
@@ -82,5 +82,5 @@ pub trait Tool {
/// If there are any additional keybindings that need to be handled by this tool, these can be
/// handled here.
- fn on_button_pressed(&mut self, _map: &mut Map, _button: Button) {}
+ fn handle_custom_bindings(&mut self, _map: &mut Map, _input: &mut Input) {}
}