Quote Originally Posted by john.c View Post
Presumably you are using the ncurses library.
What exactly is your compile line?
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

You say you tried it on Linux and it worked fine. So does it work on Linux or not?
Linux was in a virtual machine in virtual box which the OS sees mouse as usb device, that's why it worked there !!!

EDIT:
Also, have you tried it with an actual mouse hooked up to your laptop? Does that work?
no i have not tried to plug in a usb mouse to laptop