accelerometer in joystick

what is the best way to program the accelerometer in the joystick controller for driving? with easy c v4

There is a function in easyC V4 called Get Joystick Accelerometer, in the Joystick group. This function is covered in the help file, which can be accessed from the Get Joystick Accelerometer function dialog box. Hope this helps.