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 {
3449
3449
pub fn isKeyReleased (key : Key ) bool {
3450
3450
return zguiIsKeyReleased (key );
3451
3451
}
3452
+ pub fn setNextFrameWantCaptureKeyboard (want_capture_keyboard : bool ) void {
3453
+ zguiSetNextFrameWantCaptureKeyboard (want_capture_keyboard );
3454
+ }
3452
3455
3453
3456
extern fn zguiIsKeyDown (key : Key ) bool ;
3454
3457
extern fn zguiIsKeyPressed (key : Key , repeat : bool ) bool ;
3455
3458
extern fn zguiIsKeyReleased (key : Key ) bool ;
3459
+ extern fn zguiSetNextFrameWantCaptureKeyboard (want_capture_keyboard : bool ) void ;
3456
3460
//--------------------------------------------------------------------------------------------------
3457
3461
//
3458
3462
// Helpers
Original file line number Diff line number Diff line change @@ -2001,6 +2001,10 @@ extern "C"
2001
2001
{
2002
2002
return ImGui::IsKeyReleased (key);
2003
2003
}
2004
+ ZGUI_API void zguiSetNextFrameWantCaptureKeyboard (bool want_capture_keyboard)
2005
+ {
2006
+ ImGui::SetNextFrameWantCaptureKeyboard (want_capture_keyboard);
2007
+ }
2004
2008
// --------------------------------------------------------------------------------------------------
2005
2009
//
2006
2010
// DrawList
You can’t perform that action at this time.
0 commit comments