Refactor some code in input_state - plus only accept overlay
input when driver.block_libretro_input is false