gcc.exe -Wall -g -IC:\msys64\mingw64\include\ncursesw -c C:\Users\demos\Documents\WORKSPACES\C\NCURSES\4_5\ main.c -o obj\Debug\main.o
gcc.exe -o bin\Debug\4_5.exe obj\Debug\main.o -lncursesw
Linux was in a virtual machine in virtual box which the OS sees mouse as usb device, that's why it worked there !!!You say you tried it on Linux and it worked fine. So does it work on Linux or not?
no i have not tried to plug in a usb mouse to laptopEDIT:
Also, have you tried it with an actual mouse hooked up to your laptop? Does that work?