attractplus icon indicating copy to clipboard operation
attractplus copied to clipboard

Layout receives input state meant for TAB menu

Open Chadnaut opened this issue 1 year ago • 0 comments

local a = fe.add_artwork("snap", 0, 0, 400, 400);

function on_tick(tick_time) {
    // Press "1" or "2" (number row) while in the TAB menu
    a.x = fe.get_input_state("Num1") ? 50 : 0;
    if (fe.get_input_state("Num2")) fe.signal("reset_window");
}

fe.add_ticks_callback("on_tick");

Most signals are prevented ("select", "back", "exit") but some still get actioned ("reset_window"). Most apparent when the arrow keys trigger a change (ie: OSK), or the mouse state updates a pointer/hotspot implementation.

Would expect the layout to not receive input state while the TAB menu is open,

Chadnaut avatar Feb 12 '24 08:02 Chadnaut