Push focus events to ImGui.

This commit is contained in:
Bartosz Taudul 2022-12-20 17:11:15 +01:00
parent 170a961d8d
commit 0831b3f301
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -179,10 +179,12 @@ static void KeyboardKeymap( void*, struct wl_keyboard* kbd, uint32_t format, int
static void KeyboardEnter( void*, struct wl_keyboard* kbd, uint32_t serial, struct wl_surface* surf, struct wl_array* keys )
{
ImGui::GetIO().AddFocusEvent( true );
}
static void KeyboardLeave( void*, struct wl_keyboard* kbd, uint32_t serial, struct wl_surface* surf )
{
ImGui::GetIO().AddFocusEvent( false );
}
static void KeyboardKey( void*, struct wl_keyboard* kbd, uint32_t serial, uint32_t time, uint32_t key, uint32_t state )