GLUT and mouse
hi everybody
How can i get mouse position WITHOUT buttons press using GLUT mouse function? If it''s not possible what microsoft''s windoze function can i use? this will be my first step in windoze programming so thanks for step by step explanation (or good link/tut)
thanks for the replies!!
lunasol.x
ok, right now im wondering if you have made any windows programs ( started a project as win32 app ) yet. if so, then the way to get the mouse location when it moves is by trapping the WM_MOUSEMOVE message. the x position is in the LOWORD( lparam ) and the y position is in the HIWORD( lparam ). but if youre not at all familiar with windows programming then i dont know about the specifics of the GLUT mouse functions. if you are interested in learning about windows programming then i suggest purchasing a copy of charles petzold''s bestseller "Programming Windows 98". or im sure there are plenty of tutorials on the net about the windows basics. at any rate i hope this helps, and if not....read a book.
ok i get it (i''ll search a little bit longer next time before posting...)
it''s :
void glutPassiveMotionFunc(void (*func)(int x, int y));
thanks Michael for your reply. I have never made any windows program because...i have no time to learn windoze programming! one day maybe?
lunasol
it''s :
void glutPassiveMotionFunc(void (*func)(int x, int y));
thanks Michael for your reply. I have never made any windows program because...i have no time to learn windoze programming! one day maybe?
lunasol
hi
which header does i include in order to use getCursorPos()? i''ve searched on the net but didn''t get it
thanks
lunasol
which header does i include in order to use getCursorPos()? i''ve searched on the net but didn''t get it
thanks
lunasol
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement