Jump to content

Recommended Posts

Posted (edited)

I am trying to use mouse movements for a hud menu's selection process, but I ran into the problem that the mouse's movements are all set to 0 because the mouse isn't technically even on the screen. Is there a way to get the physical mouse's movement even when the mouse's pointer is not on the screen? The game has to parse physical mouse movements into camera movements somewhere right? So where could I get these physical movements? 

 

I've tried using head rotation to solve this, but I've actually given up with the trig required for it. 
 

Someone gave me some advice to use GLFW to get mouse movements, but I have no idea how to get the Callback that Mojang uses. I also looked at the GLFW_RAW_MOUSE variable in InputMappings, which looked very promising, but I have no idea how to use it. I was able to use the GLFW class to get cursor movements, but that doesn't work either because the cursor doesn't move. I need to get the direct mouse movements and not the cursor positions. 

Edited by DavidQF555
Added detail

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.