mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Push focus events to ImGui.
This commit is contained in:
parent
170a961d8d
commit
0831b3f301
@ -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 )
|
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 )
|
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 )
|
static void KeyboardKey( void*, struct wl_keyboard* kbd, uint32_t serial, uint32_t time, uint32_t key, uint32_t state )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user