Mouse.GetState() in OpenGL project type causes error.

Hi all, I’ve been learning Monogame for the last week, so I’m still new. When I try and use Mouse.GetState() on the OpenGL project I get errors.

MouseState newState = Mouse.GetState();

The errors are…

An unhandled exception of type ‘System.EntryPointNotFoundException’ occurred in OpenTK.dll
Additional information: Unable to find an entry point named ‘SDL_GetGlobalMouseState’ in DLL ‘SDL2.dll’.

This doesn’t happen in the DirectX template, only the OpenGL, except I wanted to use the OpenGL so look into that nez framework.

So far I have tried downloading OpenTK.DLL and SDL2 DLLs and placing them in the directory with the exe. I’ve tried adding OpenTK pre release and SDL2 from the nuget Package Manager in VS2015 into the project also.

Does anyone know how to solve this?

Just want to say that I have solved this for myself by reinstalling Windows from scratch. There must’ve been some driver or setting or something that was causing it. Now able to use the Mouse.GetState command in the OpenGL template.