mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
cargo fmt
This commit is contained in:
parent
738081b14b
commit
165ccc8043
@ -130,8 +130,9 @@ fn main() {
|
||||
// with arbitrary key indexes. For example, to check
|
||||
// if the F1 key is been pressed
|
||||
|
||||
if ui.is_key_index_released(37) { // Hardcoded for imgui-examples only, instead do this:
|
||||
//if ui.is_key_index_released(winit::event::VirtualKeyCode::F1 as i32) {
|
||||
if ui.is_key_index_released(37) {
|
||||
// Index is hardcoded for imgui-examples only, instead do this:
|
||||
//if ui.is_key_index_released(winit::event::VirtualKeyCode::F1 as i32) {
|
||||
f1_release_count += 1;
|
||||
}
|
||||
ui.text(format!("F1 has been released {} times", f1_release_count));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user