Skip to content
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

Input injection in public API #630

Closed
maluoi opened this issue May 5, 2023 · 2 comments
Closed

Input injection in public API #630

maluoi opened this issue May 5, 2023 · 2 comments
Assignees
Labels
feature Related to new feature work
Milestone

Comments

@maluoi
Copy link
Collaborator

maluoi commented May 5, 2023

Describe the feature

input_keyboard.h has these functions that are private to StereoKit, and it would be great to add them to the public API!

void input_keyboard_inject_press  (key_ key);
void input_keyboard_inject_release(key_ key);
void input_text_inject_char       (char32_t character);

An example use-case

For debug/testing purposes, this could be very helpful for replaying input, or helping out on platforms that don't understand certain input devices. May also make for great tutorial aids.

@maluoi maluoi added the feature Related to new feature work label May 5, 2023
@maluoi maluoi added this to the v0.3.7 milestone May 5, 2023
@maluoi maluoi self-assigned this May 5, 2023
@Jumbli
Copy link

Jumbli commented May 8, 2023

Glad to see this added to the list. It also means I can make VoiceToText work on standard SK text inputs :)

maluoi added a commit that referenced this issue Jul 3, 2023
@maluoi
Copy link
Collaborator Author

maluoi commented Jul 5, 2023

These are now in 0.3.7-preview.1570!

@maluoi maluoi closed this as completed Jul 5, 2023
@maluoi maluoi mentioned this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Related to new feature work
Projects
Status: Done
Development

No branches or pull requests

2 participants