| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| mouse buttons; how to Check the mousewheel status | |
|---|---|
| Tweet Topic Started: Apr 16 2009, 03:29 AM (392 Views) | |
| Bazza | Apr 16 2009, 03:29 AM Post #1 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
is there a way to check the status of the mouse wheel?like wether you roll it up or down or because i need this for my gui. CheckMouseButton(mb_middle) does nothing. so is there any argument for rolling the mouse wheel up and down? |
| My instinct is to hide in this barrel, like the wily fish. | |
![]() |
|
| ashrat3000 | Apr 16 2009, 03:37 AM Post #2 |
|
u3d raytracer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
GM has an event for it called "mouse wheel up" in the mouse events. |
|
그대를 사랑해 | |
![]() |
|
| Bazza | Apr 16 2009, 03:43 AM Post #3 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
well i was hoping for a code equivelent so i could do it in the step event : / |
| My instinct is to hide in this barrel, like the wily fish. | |
![]() |
|
| skarik | Apr 16 2009, 04:29 AM Post #4 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sure. Just make a DLL. All the inputs events for a window are documented...somewhere... Edited by skarik, Apr 16 2009, 04:30 AM.
|
| Blog|EHS | |
![]() |
|
| Despellanion | Apr 16 2009, 09:50 AM Post #5 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There are no code for scrolling the mouse wheel, only pressing it. You have to use the drag n' drop event for mouse wheel scroll. |
![]() |
|
| Reikyrr | Apr 16 2009, 03:13 PM Post #6 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can state weather the mouseweel is being used by using an object with drag 'n drop and a global variable. For example the controll object
Edited by Reikyrr, Apr 16 2009, 03:22 PM.
|
|
~Inspirational quote~ | |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



10:21 AM Jul 11