mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-15 12:15:01 +01:00
Add basic block selection with mouse
This commit is contained in:
parent
98965a8c86
commit
f07bd9c713
4 changed files with 66 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue