xCuri0 / RawInputMod

Raw Input mod for Minecraft 1.8.9/1.12.2 using JInput
MIT License
17 stars 13 forks source link

The mod doesn't seem to work #1

Open Equbuxu opened 4 years ago

Equbuxu commented 4 years ago

I tried changing mouse sensitivity and doing /rescan but no matter what I can't rotate camera in game

Equbuxu commented 4 years ago

Apparently disabling enhanced pointer precision in windows settings makes it work, but the input is very delayed. It could be because my mouse has a report rate of 1000hz

xCuri0 commented 4 years ago

Can you tell computer specs and operating system ?

I'm using this on my laptop running Windows 10 and Minecraft 1.8.9 and it works. My mouse is also 1000hz (G402)

Equbuxu commented 4 years ago

I'm running windows 10 (1903) with ryzen 2700, gtx 1050 ti and 16 gb of ram. My mouse is bloody v8m.

Also, I've just tried running it again and now it doesn't work even with enhanced pointer precision disabled so it might not be related. I also tried loading it both with and without optifine using both multimc and the official launcher, none of this made a difference

xCuri0 commented 4 years ago

Do you have any other input devices connected to your computer ? This mod works by scanning all input devices and then using the one moves first so it could be detecting something else. I have to use this method due to how the library used by Minecraft works

Equbuxu commented 4 years ago

I have a drawing tablet connected but disconnecting it makes no effect.

I ended up building the mod myself and so far I see two issues:

  1. getControllers() (RawInput.java, line 50) function call logs multiple exceptions like INFO: Failed to initialize device Pentablet HID because of: java.io.IOException: Failed to acquire device (8007001e) Pentablet HID is my tablet (which is disconnected). The function still returns a list of devices so this is not the main issue.
  2. The code fails to detect mouse movement most of the time. The while loop keeps running for minutes failing to detect any movement (and keeps spamming the console with exceptions) even though I'm clearly moving my mouse. Sometimes after looping for minutes (sometimes hours) it finally detects the device correctly and it starts working. The input is still delayed, or more precisely it feels like it's not being processed fast enough. When I start moving my mouse the camera starts rotating immediately, but soon after that it starts to lag behind and by the time I have stopped moving my mouse it still moves
xCuri0 commented 4 years ago

@BYSTACK have you tried opening Minecraft while not interacting with any other programs ? I have the same issue sometimes and that seems to be the cause of it

aidanhasaknife commented 4 years ago

i'm having the exact same issue, moving the mouse does nothing even after /rescan

xCuri0 commented 4 years ago

@Aidan-Lineberry try reconnecting your mouse. i know this mod is really buggy but theres nothing i can about it as this is the only way to get raw input with the libraries included with minecraft.

Enovale commented 3 years ago

Not to sound like an ass, but have you tried seeing if you can embed and include other input libraries into your mod to add true raw input support? For example: https://forums.minecraftforge.net/topic/69903-1122-how-to-include-libraries-jar-files-in-a-build/ https://www.reddit.com/r/feedthebeast/comments/binrr5/how_can_you_add_additional_libraries_to_your/

Enovale commented 3 years ago

@ElijahZAwesome (i sent you a BAT :)

I don't know what you mean by this

vichvich4444 commented 3 years ago

Same exact problem here. Can't rotate camera in game. 1.12 version doesn't work, but 1.8.9 works.

CAG2Mark commented 3 years ago

Should be resolved in my pull request, see https://github.com/xCuri0/RawInputMod/pull/2