Hey Brett 
That was a quick response.
what im using for keyboard is eg.
if((keys['R'] & 128) != 0){
     Init();
}
but for mouse input it doesnt seem to work as easy ive tried
if (MOUSEEVENTF_LEFTDOWN == true){
 
}
when i highlight the word Mouseevent word it says 0x0002 so i also tried
if (MOUSEEVENTF_LEFTDOWN != 0x0002) in case that is its state when not pressed 
but didnt work either
 
it always compiles when i use either of these but doesnt enter the code block 
after it.. am i well off?
 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Fri, 30 Nov 2007 15:53:28 
-0500Subject: Re: [c-prog] Mouse input




On Nov 30, 2007 3:51 PM, glogic20 <[EMAIL PROTECTED]> wrote:> Just looking for 
some help to take in mouse input. Im making a simple> game using opengl and 
c++(visual studio 2005). I have been using> GetKeyboardState(keys) to take in 
input from keyboard but id like to> use the mouse too. Ive looked up online and 
cant seem to get them to> work.. i tried MOUSEEVENTF_LEFTDOWN but im not sure 
if im using it> right. Can anyone show me a simple example of taking mouse 
input so it> gets the x y cordinates of the cursor?Might be easier for you to 
show the code you have so we can see what'snot working.-- 
Brett----------------------------------------------------------"In the rhythm 
of music a secret is hidden;If I were to divulge it, it would overturn the 
world."-- Jelaleddin Rumi 






_________________________________________________________________
Share life as it happens with the new Windows Live.Download today it's FREE!
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007

[Non-text portions of this message have been removed]

Reply via email to