File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3449,10 +3449,14 @@ pub fn isKeyPressed(key: Key, repeat: bool) bool {
34493449pub fn isKeyReleased (key : Key ) bool {
34503450 return zguiIsKeyReleased (key );
34513451}
3452+ pub fn setNextFrameWantCaptureKeyboard (want_capture_keyboard : bool ) void {
3453+ zguiSetNextFrameWantCaptureKeyboard (want_capture_keyboard );
3454+ }
34523455
34533456extern fn zguiIsKeyDown (key : Key ) bool ;
34543457extern fn zguiIsKeyPressed (key : Key , repeat : bool ) bool ;
34553458extern fn zguiIsKeyReleased (key : Key ) bool ;
3459+ extern fn zguiSetNextFrameWantCaptureKeyboard (want_capture_keyboard : bool ) void ;
34563460//--------------------------------------------------------------------------------------------------
34573461//
34583462// Helpers
Original file line number Diff line number Diff line change @@ -2001,6 +2001,10 @@ extern "C"
20012001 {
20022002 return ImGui::IsKeyReleased (key);
20032003 }
2004+ ZGUI_API void zguiSetNextFrameWantCaptureKeyboard (bool want_capture_keyboard)
2005+ {
2006+ ImGui::SetNextFrameWantCaptureKeyboard (want_capture_keyboard);
2007+ }
20042008 // --------------------------------------------------------------------------------------------------
20052009 //
20062010 // DrawList
You can’t perform that action at this time.
0 commit comments