LWJGL / lwjgl

[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.
http://legacy.lwjgl.org/
549 stars 207 forks source link

Moving with keyboard in Minecraft and then clicking stops movement. #1

Closed ArashiDragon closed 11 years ago

ArashiDragon commented 12 years ago

Playing the game Minecraft, moving forward with "w" key, if you click with any mouse button you stop moving even if holding "w" down. (or any movement key)

While in an inventory holding shift and then clicking normally can move an item to a different box. With 2.8.5 installed you have to try many times to get this to work.

Basically all keyboard keys seem to loose function or focus when clicking with the mouse.

I went back to 2.8.4 and had no issues at all.

Spasi commented 12 years ago

This issue should be fixed by f57c236373eafa7df6b6832969822e8122c656c9.

IAmHughes commented 11 years ago

I know this was closed 2 months ago, but I know how to search. Just updated to latest recommended build and am having the exact same issue described here to include walking backwards (S key) and right clicking.

Spasi commented 11 years ago

Had another go at fixing this. Could you try the new build please? You'll need to download lwjgl.jar and the lwjgl native lib from one of the following URLs, under "Last Successful Artifacts":

Windows x86 Windows x64

IAmHughes commented 11 years ago

I'll check it out today and report back what I find. At work now, but will look into this in the afternoon.

jlp1528 commented 11 years ago

I have these exact same issues. Somewhat bugged in version shipped with game, fine with 2.8.4, bugs back with a vengeance in 2.8.5. It's especially annoying in several more ways: 1 - If you click and press a movement key at the same time, the game acts as if you're holding that key down even after you let go of it. 2 - If you're holding shift to hold on to a ladder or vines so you don't go back down, but then click, the game acts as if you let go of the shift key. Pretty frustrating when you're trying to chop down nice tall jungle trees. 3 - Similar to the ladders and vines thing, if you're holding shift to avoid falling off a cliff while holding down a movement key, but then click, the game acts as if you let go of the keys. Moreover, it acts as if you let go of them one at a time, so sometimes it lets go of the shift key first, you move just a tiny bit more, and you fall off the cliff. Of course, if I don't update LWJGL at all, my sound is just whack, skipping, bursting, and even stopping playing music randomly. Oddly enough, those bugs can also happen with 2.8.5, but I've never had them on 2.8.4. My performance also improves a bit by updating LWJGL to either version, but not as much as I had hoped. Of course, it doesn't help that I like to play the Direwolf20 mod pack from the Feed The Beast launcher, but all I have to play on is a college rental tablet laptop with integrated graphics. Meh, oh well. At least I can play Minecraft at all...

Spasi commented 11 years ago

I made some additional fixes, please try the next build (#17) when it's up.

miles commented 11 years ago

Hi Loannis,

Thanks for your work on this. I'm having similar issues with Minecraft on OSX and the keyboard mapping. I was prompted to look up LWJGL from this comment from Mojang: http://bit.ly/YLWNCc

I'll try testing it and see if I can contribute something useful here. I don't really understand Java or reporting issues very well.

Thanks,

Miles

Spasi commented 11 years ago

Hey Miles,

Could you please create a new issue for that? It seems unrelated to this issue (which is Windows-specific anyway) and has more to do with adding support for different keyboard layouts.

miles commented 11 years ago

Ah, okay :) I've never submitted an issue before so I'll do my best.

endlisnis commented 11 years ago

I tried out build #18 (x86) and it has window focus issues. I don't know if it has totally fixed the key issues, but now when you Alt-Tab to a Minecraft window, Minecraft does not receive any keyboard input at all. If I click on the interior frame of the minecraft window, keys are delivered but the windows title bar is greyed out and does not have focus.

Spasi commented 11 years ago

I'm afraid this is the expected behavior now. The AWT window will appear unfocused when the internal LWJGL display has focus. This was the only way to fix the keyboard issue and it matches the behavior on Linux.

It sounds like the original issue has been fixed and I'll be closing this issue soon.

grum commented 11 years ago

That's not really convenient but from 1.6 we're planning to use a native windows anyways.

Sh4dowBullseye commented 11 years ago

I am having this same issue, originally I was trying to fix a bug with mouse button 4 and 5 (Forward and Back button) to make it so that they do not interfere with minecraft gameplay. I use these mouse buttons for talk keys in VoIP chats like Ventrilo and Mumble and Teamspeak 3 so it is really inconvenient to have to change my PTT keys. After finding the fix located at ( http://www.minecraftforum.net/topic/1303746-side-mouse-button-problemssupport/ ) I went through followed the steps and did what it said, however a new problem popped up which is where the WSAD keys seem to stop working as though they are not pressed anymore when I press the Right mouse button. Now I am not the best with computers but I know enough so if there is a current fix for this issue please do let me know as I would love to be able to play with out being stuck having to use mouse first then keyboard.

Spasi commented 11 years ago

Please try the next nightly build.

Sh4dowBullseye commented 11 years ago

rather slow on the up take there bud I posted this over 2 weeks ago.

matzon commented 11 years ago

I'm sure you could get it fixed quicker if you send a fat check along with your request. People still have to work you know ...