Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Mouse Click Not Registering

$
0
0

@halterdev wrote:

I'm just attempting to debug my solution to verify that it's working, but no mouse clicks are getting detected.

MouseState state = Mouse.GetState();
if(state.LeftButton == ButtonState.Pressed)
{

}

I'm putting a breakpoint inside the if and it is never getting hit. The If is getting hit every frame, but no matter what I click, it will not pick it up.

I am running Windows 8 and on a laptop, so I was wondering if that might have something to do with it. I tried it with both the mouse pad on my laptop and a mouse plugged in via USB, but no luck.

Any ideas? I'm running MonoGame 3.6.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles