Compare commits
1 Commits
fcacf7026f
...
b0aecc3fd1
Author | SHA1 | Date | |
---|---|---|---|
|
b0aecc3fd1 |
@ -99,7 +99,7 @@ impl WindowContext<'_>{
|
||||
keycode=>{
|
||||
if let Some(input_instruction)=match keycode{
|
||||
winit::keyboard::Key::Named(winit::keyboard::NamedKey::Space)=>Some(InputInstruction::Jump(s)),
|
||||
winit::keyboard::Key::Character(key)=>match key.as_str(){
|
||||
winit::keyboard::Key::Character(key)=>match key.to_lowercase().as_str(){
|
||||
"w"=>Some(InputInstruction::MoveForward(s)),
|
||||
"a"=>Some(InputInstruction::MoveLeft(s)),
|
||||
"s"=>Some(InputInstruction::MoveBack(s)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user