{"action":"opened","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/526","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/526/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/526/events","html_url":"https://github.com/ocornut/imgui/issues/526","id":133091130,"number":526,"title":"Keyboard input for iOS","user":{"login":"jvcleave","id":150037,"avatar_url":"https://avatars.githubusercontent.com/u/150037?v=3","gravatar_id":"","url":"https://api.github.com/users/jvcleave","html_url":"https://github.com/jvcleave","followers_url":"https://api.github.com/users/jvcleave/followers","following_url":"https://api.github.com/users/jvcleave/following{/other_user}","gists_url":"https://api.github.com/users/jvcleave/gists{/gist_id}","starred_url":"https://api.github.com/users/jvcleave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvcleave/subscriptions","organizations_url":"https://api.github.com/users/jvcleave/orgs","repos_url":"https://api.github.com/users/jvcleave/repos","events_url":"https://api.github.com/users/jvcleave/events{/privacy}","received_events_url":"https://api.github.com/users/jvcleave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T21:24:29Z","updated_at":"2016-02-11T21:24:29Z","closed_at":null,"body":"I am trying to implement Keyboard input for iOS. I have things somewhat working but with a slight quirk\r\n\r\nThe quirk is that when the keyboard first opens the input is not transmitted to the ImGui::InputText unless I tap the active window again and go back to typing. \r\n\r\nThe implementation works with an additional Objective-C class that uses a dummy UITextfield in order to enable the keyboard and transfer the text to ImGui::InputText\r\n\r\nhttps://github.com/jvcleave/ofxImGui/blob/master/example-ios/src/EditableText.h\r\n\r\n(the above class is using my addon for openFrameworks but it shouldn't have any effect really)\r\n\r\nHere are the basic steps I am doing\r\n\r\nCreate an `UITextField`\r\nlook for `ImGui::GetIO().WantTextInput`\r\nif yes, open the iOS Keyboard\r\nCapture the Key input into the UITextField and give it to ImGui::InputText\r\nSet the UITextField text back (needed for editing/backspace)\r\n\r\nI saw some things in the source like `SetKeyboardFocusHere` so I thought maybe there is something available that would allow me to use a workaround with a programmatic \"click\" the first time the Keyboard is opened\r\n\r\nhere is an Annotated video showing what I am doing\r\nhttps://www.youtube.com/watch?v=l9rbqsoVifc\r\n\r\n\r\n"}}