Question: how to connect ps4 controller to bluestacks?
Answer:  Launch BlueStacks and navigate to the settings menu by clicking on the hamburger menu or the gear icon on the bottom right as shown below.  In the settings menu, click on the "Preferences" tab.