mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 12:59:00 +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
|
// with arbitrary key indexes. For example, to check
|
||||||
// if the F1 key is been pressed
|
// 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(37) {
|
||||||
//if ui.is_key_index_released(winit::event::VirtualKeyCode::F1 as i32) {
|
// 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;
|
f1_release_count += 1;
|
||||||
}
|
}
|
||||||
ui.text(format!("F1 has been released {} times", f1_release_count));
|
ui.text(format!("F1 has been released {} times", f1_release_count));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user