Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / More input...

Author
Message
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 27th Apr 2008 04:58
Is there a way to check the mouse wheel setting?

I don't need an oven to make my cookies.
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 27th Apr 2008 08:20 Edited at: 27th Apr 2008 08:20
If by wheel you mean "scroll wheel" then there is the dbMouseZ which returns a value of 0 - 100 depending on the position of the mouse wheel...

If you mean some setting... then go to control panel and mouse to change whatever you want...

~~It's not who you are underneath, but what you do that defines you.~~
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 27th Apr 2008 21:12
Oh. I knew that. Or not...

I AM THE ALL MIGHTY CORNHOLIO! Do you have TP for my bunghole?
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 27th Apr 2008 21:16
So, this would be good?



I AM THE ALL MIGHTY CORNHOLIO! Do you have TP for my bunghole?
Core2uu
16
Years of Service
User Offline
Joined: 15th Mar 2008
Location: Saskatoon, SK, Canada
Posted: 27th Apr 2008 21:54
Looks good to me... If you want to see if it works try it out...

~~It's not who you are underneath, but what you do that defines you.~~
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 27th Apr 2008 22:04
I don't like that code snip.

jgc_userinput.h




jgc_userinput.cpp


You can exclude the timer code and the configuration code. Just note that the mouse update routine I'm using here has the option to check the mouse ONLY if the correct time interval has passed. You don't necessarily need that... but I DO use this to POLL the MOUSE ONCE in my loop lets say, THEN I NEVER ACCESS the mouse again... instead I access these values I "Stored" of the mouse, so I never get messed up resulted for reading mousemove functions twice or something.

Hope this is helpful... NOTE how I calculated my own MouseMovedX, MouseMovedY, MouseMovedZ. For your ZWheel thing, you could just do:



Login to post a reply

Server time is: 2024-11-20 09:37:34
Your offset time is: 2024-11-20 09:37:34