Analog controls with keyboard?

I’m trying to get N64 working but since I use a ipac2 I have trouble getting analog to work, is there a way to simulate analog stick with a keyboard in retroarch or should I use another emulator?

Go into settings > input > User 1 Input Binds and bind the left-analog axes to buttons. Works for me, at least.