Skip to content

Commit 683899e

Browse files
authored
menu_state_get_ptr() needs to be behind HAVE_MENU (#18349)
it gets treated as an int instead of a pointer because the actual declaration (included from menu/menu_driver.h) is gated behind HAVE_MENU.
1 parent 4ed05b0 commit 683899e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

input/input_driver.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5691,12 +5691,14 @@ static void input_keys_pressed(
56915691
else
56925692
input_st->flags |= INP_FLAG_BLOCK_HOTKEY;
56935693
}
5694-
5694+
5695+
#ifdef HAVE_MENU
56955696
/* Prevent triggering menu actions after binding */
56965697
if ( !(input_st->flags & INP_FLAG_MENU_PRESS_PENDING)
56975698
&& menu_state_get_ptr()->input_driver_flushing_input)
56985699
input_st->flags |= INP_FLAG_WAIT_INPUT_RELEASE;
5699-
5700+
#endif
5701+
57005702
/* Check libretro input if emulated device type is active,
57015703
* except device type must be always active in menu. */
57025704
if ( !(input_st->flags & INP_FLAG_BLOCK_LIBRETRO_INPUT)

0 commit comments

Comments
 (0)