Need help mapping Esplora's accelerometer to joystick.

PS I'm a bit puzzled, this is for a virtual pinball machine, why do you need joystick operation, I always thought the quickest way to get flipper operation would be the side buttons

Please watch the video. I have the buttons. The joystick is mapped to "TILT" Nudge Left, Right, and UP. I would like the accelerometer to sense table movement and engage the TILT in the appropriate direction.