0

I just got Minecraft, and I was really excited to start playing it, but when I joined a world, I noticed that I turned halfway or so and then stopped. I think that it is because an invisible cursor is hitting the edges of the screen, but I don't know. I can't play successfully because of this.

Edit: I am using Linux to run Minecraft.

  • Hello, can your question be more specific? I do not understand – Max Chan Oct 1 at 23:04
  • i think he means he can only turn half way around – Malachi Coleman Oct 2 at 0:29
  • Have you clicked into the game window? Try pressing Esc to open the game menu, then click on an empty space there and Esc again to return to the game. Does it then behave normally? – Fabian Röling Oct 3 at 12:43
2

Turning/Looking in Minecraft is tied to your mouse movement.

Basically, when you move your mouse, your avatar will look around. When you stop moving your mouse; so will your avatar.

Normally, while in game (and not interacting with any UI) your "cursor" will be pinned to the center of the screen, to allow for unlimited movement. The only reason that this isn't the case, is if your game is not the primary focus. This could be for many reasons, such as system notifications, backgrounds apps, or even a bug.

Every time this happens, you should be able to ensure that Minecraft is the main window that has focus, by using Alt+Tab to change which application is your main window.

  • Sorry, but that didn't work. Alt+Tab isn't working while I am in Minecraft. – Stevehead25 Oct 2 at 11:32
  • That's concerning, Alt+Tab should always work (except on my system, but that's a long story and I know why). What operating system are you using? Did you do anything special, like changing hotkeys or keyboard layout, are some system modificating programs installed? – Fabian Röling Oct 3 at 12:45
0

If I understood correctly, your cursor doesn't snap to the middle of the screen every tick, as it should.
If the problem persists, you could use a program to do this for you. If you have a C++ compiler, you can do it yourself like this (yes, I know this isn't Stack Overflow):

#include <windows.h>
int main()
{
while(1)
{

   if(GetKeyState(0x5A)==1)
   SetCursorPos(GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
   Sleep(1);
}
}

Feel free to copy the code above, compile it and then keep it open in the background while playing the game. It may be a bit uncomfortable, but it's better than not being able to play altogether. Press Z to toggle the program off for navigating through your inventory, chests, menus and such.
Edit: also try to downgrade to an older version, and see if it's fixed.

  • I tried running it but it gave me this error: mc.cpp:1:1: error: ‘include’ does not name a type include <windows.h> ^~~~~~~ – Stevehead25 Oct 3 at 13:46
  • I've forgot the #, apparently. Add a # before include. – John Oct 3 at 16:57
  • i am on linux, so this isn working? can you make one for linux? – Stevehead25 Oct 7 at 18:09
  • @Stevehead25 I don't know how to do it for Linux, but I'll search for how to do it. – John Oct 7 at 18:17
  • thank you so much @John! i might finally be able to play! – Stevehead25 Oct 7 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.