begin sketching out new autocompletion lister path

This commit is contained in:
Ryan Fleury
2025-04-30 15:06:43 -07:00
parent 9ed65c2997
commit 24f4ef2d2d
8 changed files with 170 additions and 51 deletions
+12 -4
View File
@@ -565,14 +565,22 @@ ui_next_event(UI_Event **ev)
{
good = 0;
}
if(!(perms & UI_PermissionFlag_Keyboard) &&
(n->v.kind == UI_EventKind_Press ||
n->v.kind == UI_EventKind_Release) &&
if((n->v.kind == UI_EventKind_Press ||
n->v.kind == UI_EventKind_Release ||
n->v.kind == UI_EventKind_Navigate ||
n->v.kind == UI_EventKind_Edit) &&
(n->v.key != OS_Key_LeftMouseButton &&
n->v.key != OS_Key_MiddleMouseButton &&
n->v.key != OS_Key_RightMouseButton))
{
good = 0;
if((perms & UI_PermissionFlag_Keyboard) == UI_PermissionFlag_KeyboardSecondary)
{
good = !!(n->v.flags & UI_EventFlag_Secondary);
}
else if(!(perms & UI_PermissionFlag_Keyboard))
{
good = 0;
}
}
else if(!(perms & UI_PermissionFlag_Text) && (n->v.kind == UI_EventKind_Text))
{