Advertisement

Mouse stuff again

Started by February 20, 2001 01:02 AM
1 comment, last by MancubuS 23 years, 11 months ago
Yes, using Set/GetCursorPos is great, but it''s dependent on the Windows Mouse sensitivity settings.... How can I change them???
________________HASTE - still recruiting
I seem to remember I used this for my OpenGL world (ahem, it was pretty crap) thingy a while ago. Alas, I reformatted recently, and only kept my current project, so i''m not sure if this is right... but the simplest thing to do is have a "sensitivity" variable which you / the user, whatver, can set at their will. So say you''ve got your delta x and delta y, just multiply them by the sensitivity factor, 1 being the default windows one, 2 being twice as sensitive etc etc. Hmm, make it a float, you''ll need more control over just how sensitive it is, depending on the system. Good luck!

Insomnia
Insomnia
Advertisement
Yes, I would go with Insomnia''s approach, it''s worked well for me. Especially sense people probably wouldn''t like their global mouse sensitivity settings being messed with.

This topic is closed to new replies.

Advertisement