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 / problem with mouseL and mouseR inthe same time

Author
Message
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th Jun 2008 07:30
While hold mouse L and mouse R at the same time.. it's nothing happen same as no any key press..
I use mouse L to fire and mouse R to turn camera.
while hold mouse R to turn around then press mouse L to fire ..it stop turning camera and don't do any fire..
how to fix this?


there both not work... WHY?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 12th Jun 2008 09:10
you cannot check both buttons in the same loop run bacause only ONE mouse event message is happenening every loop run.

So the best way would be for you to set some kind of pointers and update them every loop. this way you can even check for multiple key presses & mouse movement.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 12th Jun 2008 11:13 Edited at: 12th Jun 2008 11:14
You can get all of the the mouse button information from a single function call, and test the bits to see what is clicked:

Login to post a reply

Server time is: 2024-09-29 23:26:32
Your offset time is: 2024-09-29 23:26:32