Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Gamepad navigation support for imgui

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

Calcoph/imgui-gilrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crate to send gilrs gamepad events to imgui for gamepad navigation.

Create aGamepadHandler usingGamepadHandler::new() before the main loop.

CallGamepadHandler::handle_event() for every gilrs event (or every winit event ifwinit feature is enabled).

Make sure to enable gamepad navigation on your imgui application:

let io =Context::io_mut();io.config_flags |= imgui::ConfigFlags::NAV_ENABLE_GAMEPAD;

SeeTroubleshooting if encountering any issue.

Features

  • winit: allowsGamepadHandler::handle_event() to also callWinitPlatform::handle_event()

Troubleshooting

If using theimgui-wgpu crate, and the program crashes when opening the window menu (hold X on XBOX or Square on PlayStation). Then you must use commit89394e0 or later of the crate. You can do that by inserting the following in your Cargo.toml:

[patch.crates-io]imgui-wgpu = {git ="https://github.com/Yatekii/imgui-wgpu-rs",rev ="89394e0" }

About

Gamepad navigation support for imgui

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp