mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-17 08:28:44 +00:00
Fix 'use' for VirtualKeyCode
This commit is contained in:
parent
879b9d35af
commit
8e27d386d5
@ -111,7 +111,7 @@ fn main() {
|
||||
// key is indexed by it's integer value of
|
||||
// `winit::VirtualKeyCode`. So we can query if a key
|
||||
// is down based on it's virtual key code,
|
||||
use winit::VirtualKeyCode;
|
||||
use winit::event::VirtualKeyCode;
|
||||
let home_key_idx: i32 = VirtualKeyCode::Home as i32;
|
||||
if ui.io().keys_down[home_key_idx as usize] {
|
||||
home_counter += 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user