Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/release0271'
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbbert committed Oct 30, 2024
2 parents a521955 + 09877a4 commit d580f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/frontend/mame/ui/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,13 +1177,14 @@ std::pair<int, bool> menu::handle_pointer_update(uint32_t flags, ui_event const
// give derived class a chance to handle it
if ((track_pointer::IDLE == m_pointer_state) || (track_pointer::CUSTOM == m_pointer_state))
{
bool const wascustom(track_pointer::CUSTOM == m_pointer_state);
auto const [key, take, redraw] = custom_pointer_updated(changed, uievt);
if (take)
{
m_pointer_state = track_pointer::CUSTOM;
return std::make_pair(key, redraw);
}
else if (track_pointer::CUSTOM == m_pointer_state)
else if (wascustom)
{
if (uievt.pointer_buttons)
{
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/mame/ui/selmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ bool menu_select_launch::handle_events(u32 flags, event &ev)

// text input goes to the search field unless there's an error message displayed
case ui_event::type::IME_CHAR:
if (!pointer_idle())
if (have_pointer() && !pointer_idle())
break;

if (exclusive_input_pressed(ev.iptkey, IPT_UI_FOCUS_NEXT, 0) || exclusive_input_pressed(ev.iptkey, IPT_UI_FOCUS_PREV, 0))
Expand Down

0 comments on commit d580f0c

Please sign in to comment.