-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use get_glyph_for_action_origin #208
Comments
steamworks = { git = "https://github.com/Noxime/steamworks-rs" }
steamworks-sys = { git = "https://github.com/Noxime/steamworks-rs" } use steamworks_sys::EInputActionOrigin;
...
let glyph = input.get_glyph_for_action_origin(EInputActionOrigin::k_EInputActionOrigin_SteamController_A); |
Thank you so much for the fast response! That really clears things up. Using the API, how could I possibly get what a user has binded for a specific action (e.g. jump) and get the glyph for it? get_digital_action_data (or any of the other functions I've researched) don't seem to provide anything like that. |
@Noxime I've researched a bit and implementing glyph representation (a requirement for "full" Steam input API usage requires GetAnalogActionOrigins and GetDigitalActionOrigins. I, quite frankly, have no idea how to implement those (despite my many attempts). I'm attempting to implement these for Steamworks.js. (via napi) |
Hey, quite busy this week and I didn't have time to test it yet, #209 has those functions implemented. How about you give that branch a go and if they work, hit it with a thumbs up? |
Works. Thank you so much! |
Writing this, I'm extremely new to Rust, but I have no clue how you could possibly use get_glyph_for_action_origin in the input API. One of the required parameters is a "EInputActionOrigin", but the enum behind that is private.
How would you interact with this API?
The text was updated successfully, but these errors were encountered: