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

Text Input #532

Closed
LordSkittles opened this issue Feb 22, 2016 · 10 comments
Closed

Text Input #532

LordSkittles opened this issue Feb 22, 2016 · 10 comments

Comments

@LordSkittles
Copy link

Hi. I am a student in Australia and I am using your library to create a game engine for my course. I have created a fly cam using GLFW and when I try to input text, it overrides your input and moves the camera. Is there anyway I can prevent this?

@LordSkittles
Copy link
Author

I apologise if this is a little weird, I have just given up googling after several hours and my teachers are no help either :P

@extrawurst
Copy link
Contributor

Without a little code of what you are doing it is more than unlikely that someone will/can help you

@jethac
Copy link

jethac commented Feb 22, 2016

As Omar says in the imgui readme, most of the documentation is the header file. Is there any reason why you couldn't check IsRootWindowOrAnyChildFocused() and disable input to your camera?

@ocornut
Copy link
Owner

ocornut commented Feb 22, 2016

Read the comments nearby the ImGuiIO structure.
You can check io.WantCaptureKeyboard after calling ImGui::Update() and hide the inputs from the rest of your app when true.

@ocornut
Copy link
Owner

ocornut commented Feb 22, 2016

This is a frequent question but it's also documented in the Programmer Guide in imgui.cpp and other places. I may add it to the FAQ.

@LordSkittles
Copy link
Author

If you would like when I have free time I can go through your files and add doxygen to them so you have some online documentation

@ocornut
Copy link
Owner

ocornut commented Feb 22, 2016

Unfortunately that wouldn't be super useful and make the code way too noisy for what is a library that people need to read.

There is already a plan for documentation discussed in #435 which we'll work on with a programmatic approach.

@LordSkittles
Copy link
Author

ImGui Doesn't have ImGui::Update() :P Did you mean ImGui_ImplGlfwGL3_NewFrame();

@ocornut
Copy link
Owner

ocornut commented Feb 22, 2016

Sorry I meant NewFrame()

@LordSkittles
Copy link
Author

No worries :) Just checking haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants