Jump to content

Mouse problem


DigitalHax
 Share

Recommended Posts

Hey,

 

I have been setting up a menu system, but and I want the mouse to dissapear when you hit esc. But I tried to refine my code, but in my code the mouse flickers and doesn't work.

 

The basic concept of my code is,

 

//Main Loop {

 

If(menval == 0 {

if keyhit esc {

menval = 1

Menu = 1

}

} else {

If keyhit esc {

Menval = 0

menu = 0

}

 

 

 

if menu = 0 {

//main code

Hide the mouse

} else {

//menu code

Show the mouse

}

}

 

I hope someone understands what I'm doing wrong...

Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5.

 

 

 

Life is too short to remove USB safely.

Link to comment
Share on other sites

I'll try that. I also want to have a spot to fit in my main code, so it disables all the control also. Not so sure about that part

Win7 64bit, Leadwerks SDK 2.5, Visual Studio 2012, 3DWS, 3ds Max, Photoshop CS5.

 

 

 

Life is too short to remove USB safely.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...