Hungry was tricked and betrayed by the Sultan’s which resulted in 150 years of Muslim rule for their Christian country. (1541 to 1699)
“The Ottomans then occupied the city, which in its turn was celebrating the liberation, with a trick: Suleiman the Magnificent invited the infant John II Sigismund Zápolya with the Hungarian noblemen into his tent, meanwhile the Turkish troops began to slowly infiltrate into the fort as “tourists” seemingly in admiration of the architecture of the buildings. However, at a sudden alert they wielded their weapons and disarmed the guards and the whole garrison thereafter.
At the same time, the Hungarian noblemen felt uncomfortable in the sultan’s tent and wanted to leave. In that moment, on the outcry of the sultan “The black soup (coffee) is still to come!” (Hungarian: “Hátra van még a feketeleves!”) the Turkish soldiers disarmed the Hungarian envoy.”
Yes, the muslim occupation of Hungary changed the culture as well. The muslim troops would confiscate all the chickens and beef, leaving the people with mostly pork. That is why you see so many Hungarian dishes based on pork.
Hungary did resist the illegal muslim migration and sent any who arrived straight to Austria.
Unfortunately, the EU granted most of the muslims citizenship which allows them free travel, so some came back to Hungary anyway.