I dont know about you guys, but I had a blast playing real racing 2 using hardware keyboard with gamekeyboard app.
Choose method e in rr2 control settings, and I set A button to gamepad A, and enter button to gamepad B. I put gamepad A to the left of the screen to move the car to the left and gamepad B to the right of the screen to move the car to the right.
In your cases dpad left to gamepad A and dpad right gamepad B.
It works great and had fun playing it on a keypad instead of a touchscreen controls :P
Sent from my SK17i using XDA