Thanks! Works like a charm! I only have one problem left. I can click via the controller now and the left analog stick controls both the pointer in the game window and the regular mouse cursor outside the game window simultaneously. My game window is 800 by 600. The regular mouse pointer is stuck in an imaginary rectangle 800 by 600 pixels in dimension starting at the upper left corner of my screen. The pointer in the game is also stuck inside the game window. Both cursors move at the same time, but the buttons within my panels only react to the game's pointer hovering over them if the regular windows cursor also happens to be inside the game window at that time. So for example, if I move the pointer to the upper left corner of the screen inside the game window (where I have my back button in my game menus), the pointer outside the game window will also move to the upper left corner of my monitor, so I can't click on the back button. It won't react to the game pointer hovering above it.
Code:
function ClickViaController()
{
while(joy_1)
wait(1);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
wait(1);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
}

Then in main function of project,
function main()
{
.....
....
while(GameStarted == 0)
{
 if(num_joysticks > 0)
   {
     mouse_mode = 2;
     mouse_pos.x = joy_force.x;
     mouse_pos.y = joy_force.y;
     SetCursorPos((int)mouse_pos.x, (int)mouse_pos.y);

     if(joy_1)
     ClickViaController();
}
else
mouse_mode = 4;
......
.....
}