Hi. Do you know how to get and set cursor position?
I know this can be done using GetCursorPos and SetCursorPos from Win32 Api but I want it to work on several OS so I cant use Win32 specific functions. Thanks.
Hi. Do you know how to get and set cursor position?
I know this can be done using GetCursorPos and SetCursorPos from Win32 Api but I want it to work on several OS so I cant use Win32 specific functions. Thanks.
Use the ncurses library if you want a degree of portability in your console applications, and want more than what printf/cout can manage.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
@Elysia : how to do this using linux API?
@Salem : Im making a 3D FPS using OpenGL so ncurses may not be that usefull
I love it when people are really specific about what they're trying to achieve
Even more so when they spam the same vagueness over several forums.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
why are you giving this link about mapping fonts?
Well Im making a 3D spacesim first person shooter in OpenGL. I want to be able to rotate with the mouse passive motion but when the mouse goes out of the game window, thinks start going wrong. I found a program where this issue was handled and the guy was using GetCursorPos and SetCursorPos from Win32 API so I want to do the same without using Win32 API because my game must be working on linux.
Sorry for explaining badly what I want to do, english is not my native language... and sorry for spamming too, no excuse.
So I have to use linux's API but can you tell me where to look? witch functions to use? never used platform specific API before. Thanks.
Last edited by Spartan552; 01-13-2008 at 07:26 PM.
thanks