Poll
Question:
error #2138 - Using PellesC
Option 1: null
votes: 0
Option 2: null
votes: 1
I'm using the library curses.h moving the mouse but an error occurs at compile - error #2138: Too many arguments to 'getmouse' -
in the stretch :
while(1)
{
keypad(stdscr, TRUE);
c = getch();
switch(c)
{ case KEY_MOUSE:
if(getmouse(&event) == OK) <========== here the error
{ /* When the user clicks left mouse button */
if(event.bstate & BUTTON1_CLICKED)
{
report_choice(event.x + 1, event.y + 1, &choice);
if(choice == -1) //Exit chosen
goto end;
mvprintw(22, 1, "Choice made is : %d String Chosen is \"%10s\"", choice, choices[choice - 1]);
refresh();
}
}
print_menu(menu_win, choice);
break;
}
}
I am grateful for the help
ldalcorso