Add basic block selection with mouse

This commit is contained in:
crumblingstatue 2023-04-03 18:12:36 +02:00
parent 98965a8c86
commit f07bd9c713
4 changed files with 66 additions and 26 deletions

View file

@ -1,6 +1,6 @@
use sfml::window::Key;
use crate::input::KbInput;
use crate::input::Input;
#[derive(Default)]
pub struct DebugState {
@ -9,7 +9,7 @@ pub struct DebugState {
}
impl DebugState {
pub fn update(&mut self, input: &KbInput) {
pub fn update(&mut self, input: &Input) {
if input.pressed(Key::F12) {
self.panel ^= true;
}