there's another solution which i just found out 2 mins ago. open the registry editor on windows, go to local machine/software/capcom/resident evil 2/ and find the value for joystick and change all the number to 00, save, and then the game should run properly.